7{
9 char pad1[32];
12 char pad2[23];
14 int len1, len2;
15
18 printf(
"1: result=[%s] should be=[%s]\n",
20 "hellowo"
21 );
22
23 for (
i=0;
i<
sizeof(
c);
i++)
26#if (STRN_ZERO_PAD == 1)
27 for (
i=7;
i<
sizeof(
c) - 2;
i++) {
29 printf(
"2: did not clear to end of buffer\n");
30 break;
31 }
32 }
33#endif
34 for (
i=
sizeof(
c) - 2;
i<
sizeof(
c);
i++) {
36 printf(
"2: overwrote buffer\n");
37 break;
38 }
39 }
40
41 for (
i=0;
i<
sizeof(
c);
i++)
45#if (STRN_ZERO_PAD == 1)
46 for (
i=13;
i<
sizeof(
c) - 2;
i++) {
48 printf(
"3: did not clear to end of buffer\n");
49 break;
50 }
51 }
52#endif
53 for (
i=
sizeof(
c) - 2;
i<
sizeof(
c);
i++) {
55 printf(
"3: overwrote buffer\n");
56 break;
57 }
58 }
59
60
61
66 printf(
"4: result=[%s] should be=[%s] len1=%d len2=%d\n",
68 "hellowo",
69 len1,
70 len2
71 );
72
73 for (
i=0;
i<
sizeof(
c);
i++)
76#if (STRNP_ZERO_PAD == 1)
77 for (
i=7;
i<
sizeof(
c) - 2;
i++) {
79 printf(
"5: did not clear to end of buffer\n");
80 break;
81 }
82 }
83#endif
84 for (
i=
sizeof(
c) - 2;
i<
sizeof(
c);
i++) {
86 printf(
"5: overwrote buffer\n");
87 break;
88 }
89 }
90
91 for (
i=0;
i<
sizeof(
c);
i++)
95#if (STRNP_ZERO_PAD == 1)
96 for (
i=13;
i<
sizeof(
c) - 2;
i++) {
98 printf(
"6: did not clear to end of buffer\n");
99 break;
100 }
101 }
102#endif
103 for (
i=
sizeof(
c) - 2;
i<
sizeof(
c);
i++) {
105 printf(
"6: overwrote buffer\n");
106 break;
107 }
108 }
109
110
111 {
113
117 }
else if (
strcmp(
str,
"this is a test") != 0) {
119 }
121
125 }
else if (
strcmp(
str,
"this is a test") != 0) {
127 }
else if (
Dynscat(&
str,
" ",
"",
"and",
" ",
"so is this", 0) ==
NULL) {
129 }
else if (
strcmp(
str,
"this is a test and so is this") != 0) {
131 }
133 }
135}
char * Dynscat(char **dst,...)
char * Strncat(char *const, const char *const, const size_t)
char * Strncpy(char *const, const char *const, const size_t)
char * Strnpcpy(char *const, const char *const, size_t)
char * Strnpcat(char *const, const char *const, size_t)
int strcmp(const char *String1, const char *String2)
unsigned int(__cdecl typeof(jpeg_read_scanlines))(struct jpeg_decompress_struct *
GLboolean GLboolean GLboolean b
GLboolean GLboolean GLboolean GLboolean a
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i