1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374 |
- #ifndef __SDC51_STDLIB_H
- #define __SDC51_STDLIB_H 1
- #ifndef NULL
- # define NULL (void *)0
- #endif
- #include <malloc.h>
- int abs(int j);
- long int labs(long int j);
- extern float atof (const char *);
- extern int atoi (const char *);
- extern long atol (const char *);
- extern void _uitoa(unsigned int, char*, unsigned char);
- extern void _itoa(int, char*, unsigned char);
- extern void _ultoa(unsigned long, char*, unsigned char);
- extern void _ltoa(long, char*, unsigned char);
- #define RAND_MAX 32767
- int rand(void);
- void srand(unsigned int seed);
- #if defined (__STDC_WANT_LIB_EXT1__) && __STDC_WANT_LIB_EXT1__
- #ifndef __RSIZE_T_DEFINED
- #define __RSIZE_T_DEFINED
- typedef size_t rsize_t;
- #endif
- #ifndef __ERRNO_T_DEFINED
- #define __ERRNO_T_DEFINED
- typedef int errno_t;
- #endif
- typedef void (*constraint_handler_t)(const char *restrict msg, void *restrict ptr, errno_t error);
- #endif
- #endif
|