diff options
author | Alex AUVOLAT <alexis211@gmail.com> | 2012-05-18 19:40:11 +0200 |
---|---|---|
committer | Alex AUVOLAT <alexis211@gmail.com> | 2012-05-18 19:40:11 +0200 |
commit | ac10c1a29c44b0cb29960cd0f792c7361bc430ce (patch) | |
tree | 33466e227a0214d40de373b72c83a750dba29195 /src/user/lib/include | |
parent | 478c691187fbc9ba4ccaacf92f57828eef20041c (diff) | |
download | TCE-ac10c1a29c44b0cb29960cd0f792c7361bc430ce.tar.gz TCE-ac10c1a29c44b0cb29960cd0f792c7361bc430ce.zip |
Added some stuff.
Diffstat (limited to 'src/user/lib/include')
-rw-r--r-- | src/user/lib/include/stdio.h | 8 | ||||
-rw-r--r-- | src/user/lib/include/string.h | 2 |
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); |