x.c

来自「从iccavr7中破解得到的lib库源代码」· C语言 代码 · 共 68 行

C
68
字号
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 <= 9) *s++ = '0'+n; else *s++ = 'a'-10+n; 
j /= base; } while (j); 
if (tmp) *s++ = '-'; *s-- = 0; 
 for (t = buf; t < s; ) { tmp = *t; *t++ = *s; *s-- = tmp; } 
return buf; }

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?