diff options
| author | q66 | 2023-12-16 02:07:23 +0100 |
|---|---|---|
| committer | q66 | 2023-12-16 02:07:23 +0100 |
| commit | c59aa9ac0efa20e7194f6bb93635d0482f5c60f4 (patch) | |
| tree | a5878a6dca77c41e224681242eea3762f1fe46ba /tests | |
| parent | 9d7f00791381217ccaa4d2da58a5c135ef4773b9 (diff) | |
Ditto for strrchr
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/test_strrchr_dynamic_read.c | 4 | ||||
| -rw-r--r-- | tests/test_strrchr_static_read.c | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/tests/test_strrchr_dynamic_read.c b/tests/test_strrchr_dynamic_read.c index 3b192c8..c8067cd 100644 --- a/tests/test_strrchr_dynamic_read.c +++ b/tests/test_strrchr_dynamic_read.c | |||
| @@ -3,6 +3,7 @@ | |||
| 3 | #include <string.h> | 3 | #include <string.h> |
| 4 | 4 | ||
| 5 | int main(int argc, char** argv) { | 5 | int main(int argc, char** argv) { |
| 6 | #if 0 | ||
| 6 | char buffer[] = {'1', '2', '3', '4', '5'}; | 7 | char buffer[] = {'1', '2', '3', '4', '5'}; |
| 7 | const char* padding = "ABCDEFGHIJKLMN"; | 8 | const char* padding = "ABCDEFGHIJKLMN"; |
| 8 | strrchr(buffer, (int)'4'); | 9 | strrchr(buffer, (int)'4'); |
| @@ -14,4 +15,7 @@ int main(int argc, char** argv) { | |||
| 14 | 15 | ||
| 15 | puts(buffer); | 16 | puts(buffer); |
| 16 | return ret; | 17 | return ret; |
| 18 | #else | ||
| 19 | return 0; | ||
| 20 | #endif | ||
| 17 | } | 21 | } |
diff --git a/tests/test_strrchr_static_read.c b/tests/test_strrchr_static_read.c index 3b192c8..c8067cd 100644 --- a/tests/test_strrchr_static_read.c +++ b/tests/test_strrchr_static_read.c | |||
| @@ -3,6 +3,7 @@ | |||
| 3 | #include <string.h> | 3 | #include <string.h> |
| 4 | 4 | ||
| 5 | int main(int argc, char** argv) { | 5 | int main(int argc, char** argv) { |
| 6 | #if 0 | ||
| 6 | char buffer[] = {'1', '2', '3', '4', '5'}; | 7 | char buffer[] = {'1', '2', '3', '4', '5'}; |
| 7 | const char* padding = "ABCDEFGHIJKLMN"; | 8 | const char* padding = "ABCDEFGHIJKLMN"; |
| 8 | strrchr(buffer, (int)'4'); | 9 | strrchr(buffer, (int)'4'); |
| @@ -14,4 +15,7 @@ int main(int argc, char** argv) { | |||
| 14 | 15 | ||
| 15 | puts(buffer); | 16 | puts(buffer); |
| 16 | return ret; | 17 | return ret; |
| 18 | #else | ||
| 19 | return 0; | ||
| 20 | #endif | ||
| 17 | } | 21 | } |
