This source file includes following definitions.
- main
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 #include <config.h>
20
21 #include <string.h>
22
23 #include "signature.h"
24 SIGNATURE_CHECK (strncat, char *, (char *, const char *, size_t));
25
26 #include <stdlib.h>
27
28 #include "zerosize-ptr.h"
29 #include "macros.h"
30
31 #define UNIT char
32 #define U_STRNCAT strncat
33 #define MAGIC ((char) 0xBA)
34 #include "unistr/test-strncat.h"
35
36 int
37 main ()
38 {
39
40 {
41
42 static const char input[] =
43 { 'G', 'r', (char) 0xC3, (char) 0xBC, (char) 0xC3, (char) 0x9F, ' ',
44 'G', 'o', 't', 't', '.', ' ', (char) 0xD0, (char) 0x97, (char) 0xD0,
45 (char) 0xB4, (char) 0xD1, (char) 0x80, (char) 0xD0, (char) 0xB0,
46 (char) 0xD0, (char) 0xB2, (char) 0xD1, (char) 0x81, (char) 0xD1,
47 (char) 0x82, (char) 0xD0, (char) 0xB2, (char) 0xD1, (char) 0x83,
48 (char) 0xD0, (char) 0xB9, (char) 0xD1, (char) 0x82, (char) 0xD0,
49 (char) 0xB5, '!', ' ', 'x', '=', '(', '-', 'b', (char) 0xC2,
50 (char) 0xB1, 's', 'q', 'r', 't', '(', 'b', (char) 0xC2, (char) 0xB2,
51 '-', '4', 'a', 'c', ')', ')', '/', '(', '2', 'a', ')', ' ', ' ',
52 (char) 0xE6, (char) 0x97, (char) 0xA5, (char) 0xE6, (char) 0x9C,
53 (char) 0xAC, (char) 0xE8, (char) 0xAA, (char) 0x9E, ',', (char) 0xE4,
54 (char) 0xB8, (char) 0xAD, (char) 0xE6, (char) 0x96, (char) 0x87, ',',
55 (char) 0xED, (char) 0x95, (char) 0x9C, (char) 0xEA, (char) 0xB8,
56 (char) 0x80, '\0'
57 };
58 check (input, SIZEOF (input));
59 }
60
61 return 0;
62 }