X-Git-Url: https://git.gag.com/?a=blobdiff_plain;ds=sidebyside;f=device%2Finclude%2Fstdlib.h;h=1e3dbeb87ade4369fdc107c75255e267070236ce;hb=f9c2ef185250719e4d27888c22623120a63dd9b9;hp=17043cd22b6269ff8552d9e3b735e0984672e886;hpb=993302259ccd79c62b7ca67697eb886e145397be;p=fw%2Fsdcc diff --git a/device/include/stdlib.h b/device/include/stdlib.h index 17043cd2..1e3dbeb8 100644 --- a/device/include/stdlib.h +++ b/device/include/stdlib.h @@ -25,10 +25,16 @@ #ifndef __SDC51_STDLIB_H #define __SDC51_STDLIB_H 1 -#ifndef +#ifndef NULL # define NULL (void *)0 #endif +#include + +int abs(int j); +long int labs(long int j); + +extern float atof (char *); extern int atoi (char *); extern long atol (char *); @@ -37,4 +43,9 @@ extern void _itoa(unsigned int, char*, unsigned char); extern void _ultoa(unsigned long, char*, unsigned char); extern void _ltoa(unsigned long, char*, unsigned char); + +#define RAND_MAX 32767 + +int rand(void); +void srand(unsigned int seed); #endif