chibicc/test/test.h

13 lines
367 B
C
Raw Normal View History

2020-09-04 19:03:01 +09:00
#define ASSERT(x, y) assert(x, y, #y)
2020-09-04 11:45:29 +09:00
void assert(int expected, int actual, char *code);
2020-10-07 20:24:13 +09:00
int printf(char *fmt, ...);
int sprintf(char *buf, char *fmt, ...);
int vsprintf(char *buf, char *fmt, void *ap);
int strcmp(char *p, char *q);
2020-04-26 10:11:02 +09:00
int strncmp(char *p, char *q, long n);
int memcmp(char *p, char *q, long n);
void exit(int n);
2020-09-04 18:37:15 +09:00
int vsprintf();
2020-05-17 13:34:36 +09:00
long strlen(char *s);