summaryrefslogtreecommitdiff
path: root/src/user/lib/include
diff options
context:
space:
mode:
authorAlex AUVOLAT <alexis211@gmail.com>2012-05-18 19:40:11 +0200
committerAlex AUVOLAT <alexis211@gmail.com>2012-05-18 19:40:11 +0200
commitac10c1a29c44b0cb29960cd0f792c7361bc430ce (patch)
tree33466e227a0214d40de373b72c83a750dba29195 /src/user/lib/include
parent478c691187fbc9ba4ccaacf92f57828eef20041c (diff)
downloadTCE-ac10c1a29c44b0cb29960cd0f792c7361bc430ce.tar.gz
TCE-ac10c1a29c44b0cb29960cd0f792c7361bc430ce.zip
Added some stuff.
Diffstat (limited to 'src/user/lib/include')
-rw-r--r--src/user/lib/include/stdio.h8
-rw-r--r--src/user/lib/include/string.h2
2 files changed, 9 insertions, 1 deletions
diff --git a/src/user/lib/include/stdio.h b/src/user/lib/include/stdio.h
index 91fe169..6c3a974 100644
--- a/src/user/lib/include/stdio.h
+++ b/src/user/lib/include/stdio.h
@@ -3,11 +3,19 @@
#include <stdarg.h>
+extern FILE term;
+
+void print(char *s);
+void printf(char *s, ...);
+char *readln();
+
void fprint(FILE f, char *s);
void fprint_int(FILE f, int number);
void fprint_hex(FILE f, unsigned number);
void fprintf(FILE f, char *s, ...);
+void vsfprintf(FILE f, char *s, va_list arg);
+
char* freadln(FILE f);
#endif
diff --git a/src/user/lib/include/string.h b/src/user/lib/include/string.h
index f14af35..87d8da2 100644
--- a/src/user/lib/include/string.h
+++ b/src/user/lib/include/string.h
@@ -14,7 +14,7 @@ uint16_t *memsetw(uint16_t *dest, uint16_t val, int count);
int strlen(const char *str);
char *strcpy(char *dest, const char *src);
char *strdup(const char *src);
-char *strchr(const char *str, char c);
+char *strchr(const char *str, int c);
char *strcat(char *dest, const char *src);
int strcmp(const char *s1, const char *s2);