0017-strerror.c - scc - simple c99 compiler
(HTM) git clone git://git.simple-cc.org/scc
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) Submodules
(DIR) README
(DIR) LICENSE
---
0017-strerror.c (417B)
---
1 #include <assert.h>
2 #include <errno.h>
3 #include <stdio.h>
4 #include <string.h>
5
6 /*
7 output:
8 testing
9 test1
10 done
11 end:
12 */
13
14 void
15 test1(void)
16 {
17 printf("test1\n");
18 if (!strerror(EDOM))
19 printf("invalid EDOM string\n");
20 if (!strerror(ERANGE))
21 printf("invalid ERANGE string\n");
22 if (!strerror(EILSEQ))
23 printf("invalid EILSEQ string\n");
24 }
25
26 int
27 main()
28 {
29 printf("testing\n");
30 test1();
31 printf("done\n");
32
33 return 0;
34 }