projects
/
platform
/
upstream
/
glibc.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
* stdio-common/Makefile (tests): Add scanf[1-9].
[platform/upstream/glibc.git]
/
stdio-common
/
scanf8.c
1
#include <stdio.h>
2
#include <string.h>
3
#include <stdlib.h>
4
5
main ()
6
{
7
int ret;
8
char buf [1024] = "Ooops";
9
10
ret = sscanf ("static char Term_bits[] = {", "static char %s = {", buf);
11
printf ("ret: %d, name: %s\n", ret, buf);
12
if (ret != 1 || strcmp (buf, "Term_bits[]") != 0)
13
abort ();
14
return 0;
15
}