summaryrefslogtreecommitdiff
path: root/tests/test_strrchr_static_read.c
diff options
context:
space:
mode:
authorq662023-12-16 02:07:23 +0100
committerq662023-12-16 02:07:23 +0100
commitc59aa9ac0efa20e7194f6bb93635d0482f5c60f4 (patch)
treea5878a6dca77c41e224681242eea3762f1fe46ba /tests/test_strrchr_static_read.c
parent9d7f00791381217ccaa4d2da58a5c135ef4773b9 (diff)
Ditto for strrchr
Diffstat (limited to 'tests/test_strrchr_static_read.c')
-rw-r--r--tests/test_strrchr_static_read.c4
1 files changed, 4 insertions, 0 deletions
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
5int main(int argc, char** argv) { 5int 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}