repo.or.cz
/
glibc
/
history.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
(init_mq_netlink): Little typo in last change.
[glibc/history.git]
/
string
/
bug-strspn1.c
blob
a657bafc43f4b07c3c40660dc715dfefd3f10e69
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
}