Commit d4fae8b1 by Benjamin Kosnik

c_strings.cc (main): Fix.


2001-05-21  Benjamin Kosnik  <bkoz@kredhat.com>

	* testsuite/21_strings/c_strings.cc (main): Fix.

From-SVN: r42420
parent ef0a7b49
...@@ -35,8 +35,8 @@ void test01() ...@@ -35,8 +35,8 @@ void test01()
const char* ccarray2 = "san francisco sunny-day park inspectors"; const char* ccarray2 = "san francisco sunny-day park inspectors";
char carray[30]; char carray[30];
strcpy(carray, ccarray1); strcpy(carray, ccarray1);
void* v; void* v = carray;
const void* cv; const void* cv = ccarray1;
// const char* strchr(const char* s, int c); // const char* strchr(const char* s, int c);
// char* strchr(char* s, int c); // char* strchr(char* s, int c);
...@@ -72,8 +72,8 @@ void test02() ...@@ -72,8 +72,8 @@ void test02()
const char* ccarray2 = "san francisco sunny-day park inspectors"; const char* ccarray2 = "san francisco sunny-day park inspectors";
char carray[30]; char carray[30];
strcpy(carray, ccarray1); strcpy(carray, ccarray1);
void* v; void* v = carray;
const void* cv; const void* cv = ccarray1;
memchr(cv, '/', 3); memchr(cv, '/', 3);
strchr(ccarray1, '/'); strchr(ccarray1, '/');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment