从iccavr7中破解得到的lib库源代码
源代码在线查看: x.c
typedef unsigned int size_t;
#pragma nonpaged_function atof exit
char *ftoa(float f, int *status);
int abs(int);
double atof(const char *);
int atoi(const char *);
long atol(const char *);
int rand(void);
void srand(unsigned);
long strtol(const char *, char **, int);
unsigned long strtoul(const char *, char **, int);
char *ltoa(char *buf, long i, int base);
char *itoa(char *buf, int i, int base);
char *ultoa(char *buf, unsigned long i, int base);
char *utoa(char *buf, unsigned i, int base);
void abort(void);
void *calloc(size_t, size_t);
void exit(int);
void free(void *);
void *malloc(size_t);
void _NewHeap(void *start, void *end);
void *realloc(void *, size_t);
char *itoa(char* buf, int i, int base) {
unsigned int j = i; char *s; char *t;
char tmp;
do { int n = j % base;
if (n j /= base; } while (j);
if (tmp) *s++ = '-'; *s-- = 0;
for (t = buf; t < s; ) { tmp = *t; *t++ = *s; *s-- = tmp; }
return buf; }