Skip to content

Commit 2133fbd

Browse files
committed
CPP: Fix the nulltermination test.
1 parent 952b9e1 commit 2133fbd

File tree

1 file changed

+3
-3
lines changed
  • cpp/ql/test/library-tests/nulltermination

1 file changed

+3
-3
lines changed

cpp/ql/test/library-tests/nulltermination/test.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@
33
#define va_arg(x, y) ((y)x)
44
#define va_end(x)
55
#define NULL 0
6-
76
char* strcat(char* destination, const char* source);
87
char* strcpy(char* destination, const char* source);
98
int strlen(const char* str);
109
char* strcpy(char* destination, const char* source);
11-
10+
char* strstr(char* s1, const char* s2);
11+
const char* strchr(const char* s, int c);
12+
int strcmp(const char *s1, const char *s2);
1213
char* global = " ";
13-
1414
void addNull(char* buffer) {
1515
buffer[0] = '\0';
1616
}

0 commit comments

Comments
 (0)