c_strings.cc (main): Fix.
2001-05-21 Benjamin Kosnik <bkoz@kredhat.com> * testsuite/21_strings/c_strings.cc (main): Fix. From-SVN: r42420
This commit is contained in:
parent
ef0a7b49a9
commit
d4fae8b1f0
@ -35,8 +35,8 @@ void test01()
|
||||
const char* ccarray2 = "san francisco sunny-day park inspectors";
|
||||
char carray[30];
|
||||
strcpy(carray, ccarray1);
|
||||
void* v;
|
||||
const void* cv;
|
||||
void* v = carray;
|
||||
const void* cv = ccarray1;
|
||||
|
||||
// const char* strchr(const char* s, int c);
|
||||
// char* strchr(char* s, int c);
|
||||
@ -72,8 +72,8 @@ void test02()
|
||||
const char* ccarray2 = "san francisco sunny-day park inspectors";
|
||||
char carray[30];
|
||||
strcpy(carray, ccarray1);
|
||||
void* v;
|
||||
const void* cv;
|
||||
void* v = carray;
|
||||
const void* cv = ccarray1;
|
||||
|
||||
memchr(cv, '/', 3);
|
||||
strchr(ccarray1, '/');
|
||||
|
Loading…
Reference in New Issue
Block a user