diff options
| author | Damien <damien.p.george@gmail.com> | 2013-10-13 00:42:20 +0100 |
|---|---|---|
| committer | Damien <damien.p.george@gmail.com> | 2013-10-13 00:42:20 +0100 |
| commit | ed65605edc5c1376947a34723b9c750400b5a028 (patch) | |
| tree | d0317e867c4286ec7c889fc9ed18591a1d9990dd /stm/std.h | |
| parent | 3ef4abb446dfcbdbc426a0921a33e0883607e677 (diff) | |
Inital commit of stm32f4xx framework.
Diffstat (limited to 'stm/std.h')
| -rw-r--r-- | stm/std.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/stm/std.h b/stm/std.h new file mode 100644 index 000000000..4b370ef28 --- /dev/null +++ b/stm/std.h @@ -0,0 +1,21 @@ +typedef unsigned int size_t; + +void __assert_func(); + +void *malloc(size_t n); +void free(void *ptr); +void *calloc(size_t sz, size_t n); +void *realloc(void *ptr, size_t n); + +void *memcpy(void *dest, const void *src, size_t n); +void *memset(void *s, int c, size_t n); + +int strlen(const char *str); +int strcmp(const char *s1, const char *s2); +int strncmp(const char *s1, const char *s2, size_t n); +char *strndup(const char *s, size_t n); +char *strcpy(char *dest, const char *src); +char *strcat(char *dest, const char *src); + +int printf(const char *fmt, ...); +int snprintf(char *str, size_t size, const char *fmt, ...); |
