scc

simple C compiler
git clone git://git.2f30.org/scc
Log | Files | Refs | README | LICENSE

commit 6e2ce1b9a3285f0aa5ffef505811cd87534cfc7d
parent fbacf733497678230358cc825ec86c3dd00f5f6c
Author: Quentin Rameau <quinq@fifth.space>
Date:   Tue, 21 Feb 2017 17:07:53 +0100

[libc] Complete stdlib.h

Diffstat:
Mlibc/include/stdlib.h | 12+++++++-----
1 file changed, 7 insertions(+), 5 deletions(-)

diff --git a/libc/include/stdlib.h b/libc/include/stdlib.h @@ -4,6 +4,8 @@ #include <arch/stdlib.h> +#define MB_CUR_MAX 1 + typedef struct { int quot, rem; } div_t; @@ -25,11 +27,11 @@ extern float strtof(const char * restrict nptr, char ** restrict endptr); extern long double strtold(const char * restrict nptr, char ** restrict endptr); extern long int strtol(const char * restrict nptr, char ** restrict endptr, int base); extern long long int strtoll(const char * restrict nptr, char ** restrict endptr, - int base); + int base); extern unsigned long int strtoul(const char * restrict nptr, char ** restrict endptr, - int base); + int base); extern unsigned long long int strtoull(const char * restrict nptr, - char ** restrict endptr, int base); + char ** restrict endptr, int base); extern int rand(void); extern void srand(unsigned int seed); extern void *calloc(size_t nmemb, size_t size); @@ -43,9 +45,9 @@ extern void _Exit(int status); extern char *getenv(const char *name); extern int system(const char *string); extern void *bsearch(const void *key, const void *base, size_t nmemb, size_t size, - int (*compar)(const void *, const void *)); + int (*compar)(const void *, const void *)); extern void qsort(void *base, size_t nmemb, size_t size, - int (*compar)(const void *, const void *)); + int (*compar)(const void *, const void *)); extern int abs(int j); extern long int labs(long int j); extern long long int llabs(long long int j);