aboutsummaryrefslogtreecommitdiff
path: root/gcc/m2/gm2-libs/libc.def
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/m2/gm2-libs/libc.def')
-rw-r--r--gcc/m2/gm2-libs/libc.def10
1 files changed, 9 insertions, 1 deletions
diff --git a/gcc/m2/gm2-libs/libc.def b/gcc/m2/gm2-libs/libc.def
index 120a9d0..21c790e 100644
--- a/gcc/m2/gm2-libs/libc.def
+++ b/gcc/m2/gm2-libs/libc.def
@@ -42,7 +42,8 @@ EXPORT UNQUALIFIED time_t, timeb, tm, ptrToTM,
memcpy, memset, memmove, printf, realloc,
rand, srand,
time, localtime, ftime,
- shutdown, rename, setjmp, longjmp, atexit,
+ shutdown, snprintf,
+ rename, setjmp, longjmp, atexit,
ttyname, sleep, execv ;
@@ -361,6 +362,13 @@ PROCEDURE printf (format: ARRAY OF CHAR; ...) : [ INTEGER ] ;
(*
+ int snprintf(char *str, size_t size, const char *format, ...);
+*)
+
+PROCEDURE snprintf (dest: ADDRESS; size: CSIZE_T;
+ format: ARRAY OF CHAR; ...) : [ INTEGER ] ;
+
+(*
setenv - sets environment variable, name, to value.
It will overwrite an existing value if, overwrite,
is true. It returns 0 on success and -1 for an error.