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