Lines Matching refs:array
17 void test1(char *array) {
19 memset(array, '1', 10);
20 array[9] = 'a';
21 int r = atoi(array);
25 void test2(char *array) {
27 array[9] = 'a';
28 int r = atoi(array + 9);
32 void test3(char *array) {
34 memset(array, ' ', 10);
35 array[9] = '-';
36 array[8] = '-';
37 int r = atoi(array);
42 char *array = (char*)malloc(10);
44 if (!strcmp(argv[1], "test1")) test1(array);
47 if (!strcmp(argv[1], "test2")) test2(array);
50 if (!strcmp(argv[1], "test3")) test3(array);
53 free(array);