chibicc/test/test.h

13 lines
367 B
C
Raw Normal View History

2020-09-04 13:03:01 +03:00
#define ASSERT(x, y) assert(x, y, #y)
2020-09-04 05:45:29 +03:00
void assert(int expected, int actual, char *code);
2020-10-07 14:24:13 +03: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 04:11:02 +03:00
int strncmp(char *p, char *q, long n);
int memcmp(char *p, char *q, long n);
void exit(int n);
2020-09-04 12:37:15 +03:00
int vsprintf();
2020-05-17 07:34:36 +03:00
long strlen(char *s);