Last change
on this file was 2036, checked in by bird, 20 years ago |
Initial revision
|
-
Property cvs2svn:cvs-rev
set to
1.1
-
Property svn:eol-style
set to
native
-
Property svn:executable
set to
*
-
Property svn:keywords
set to
Author Date Id Revision
|
File size:
304 bytes
|
Line | |
---|
1 | /* Test case by Joseph S. Myers <jsm28@cam.ac.uk>. */
|
---|
2 | #undef __USE_STRING_INLINES
|
---|
3 | #define __USE_STRING_INLINES
|
---|
4 | #include <string.h>
|
---|
5 | #include <stdlib.h>
|
---|
6 | #include <stdio.h>
|
---|
7 |
|
---|
8 | int
|
---|
9 | main (void)
|
---|
10 | {
|
---|
11 | const char *a = "abc";
|
---|
12 | const char *b = a;
|
---|
13 |
|
---|
14 | strspn (b++, "");
|
---|
15 | if (b != a + 1)
|
---|
16 | return 1;
|
---|
17 |
|
---|
18 | return 0;
|
---|
19 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.