Unified · Split
| @@ -1,6 +1,5 @@ | |||
| 1 | #include <stdio.h> | 1 | #include <stdio.h> |
| 2 | #include <string.h> | 2 | #include <string.h> |
| 3 | #include <strings.h> | ||
| 4 | 3 | ||
| 5 | int main() | 4 | int main() |
| 6 | { | 5 | { |
| @@ -26,9 +25,9 @@ int main() · 19 unmodified lines | |||
| 26 | printf("%d\n", strncmp(a, "goerg", 2) == 0); | 25 | printf("%d\n", strncmp(a, "goerg", 2) == 0); |
| 27 | printf("%d\n", strncmp(a, "zebra", 2) < 0); | 26 | printf("%d\n", strncmp(a, "zebra", 2) < 0); |
| 28 | 27 | ||
| 29 | printf("%s\n", index(a, 'o')); | 28 | printf("%s\n", strchr(a, 'o')); |
| 30 | printf("%s\n", rindex(a, 'l')); | 29 | printf("%s\n", strrchr(a, 'l')); |
| 31 | printf("%d\n", rindex(a, 'x') == NULL); | 30 | printf("%d\n", strrchr(a, 'x') == NULL); |
| 32 | 31 | ||
| 33 | memset(&a[1], 'r', 4); | 32 | memset(&a[1], 'r', 4); |
| 34 | printf("%s\n", a); | 33 | printf("%s\n", a); |
| @@ -22,10 +22,6 @@ endif · 21 unmodified lines | |||
| 22 | ifeq ($(TARGETOS),Darwin) | 22 | ifeq ($(TARGETOS),Darwin) |
| 23 | SKIP += 40_stdio.test | 23 | SKIP += 40_stdio.test |
| 24 | endif | 24 | endif |
| 25 | ifdef CONFIG_WIN32 | ||
| 26 | SKIP += 24_math_library.test # don't have round() | ||
| 27 | SKIP += 28_strings.test # don't have r/index() / strings.h | ||
| 28 | endif | ||
| 29 | ifeq ($(ARCH),x86-64) | 25 | ifeq ($(ARCH),x86-64) |
| 30 | SKIP += 73_arm64.test | 26 | SKIP += 73_arm64.test |
| 31 | endif | 27 | endif |