lang-bootstrap/05/main.c

14 lines
210 B
C
Raw Normal View History

2022-02-14 22:43:25 -05:00
#define _STDLIB_DEBUG
#include <stdio.h>
#include <string.h>
2022-02-13 12:51:21 -05:00
2022-02-14 16:52:33 -05:00
int main(void) {
2022-02-14 22:43:25 -05:00
char s[] = " -0XAh.\n";
char *end;
errno = 0;
printf("%ld\n", strtol(s, &end, 0));
printf("%d:%s",errno,end);
return 0;
2022-02-09 22:44:27 -05:00
}
2022-02-12 21:27:57 -05:00