shithub: scc

Download patch

ref: 08afb480ac4b4d52db6a27216aaa1bca1287565c
parent: 85246aa9496cda4ba923939682de23b0f44bfaca
author: Quentin Rameau <[email protected]>
date: Tue Feb 21 12:07:53 EST 2017

[libc] Complete stdlib.h

--- 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 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 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);