repo.or.cz
/
AROS.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
-Very much WIP, ehci barebone device, no hardware initializations at this stage just...
[AROS.git]
/
test
/
clib
/
sscanf.c
blob
bbeb5d63e86a39546eea6a537e1dd9549741fa6b
1
#include <stdio.h>
2
#include <string.h>
3
4
#include
"test.h"
5
6
int
main
(
void
)
7
{
8
char
s
[
10
];
9
static char
text
[] =
"1.3 1 string"
;
10
int
i
,
cnt
;
11
float
f
;
12
13
cnt
=
sscanf
(
text
,
"%f %d %s"
, &
f
, &
i
,
s
);
14
TEST
(
cnt
==
3
);
15
TEST
(
f
==
1.3
);
16
TEST
(
i
==
1
);
17
TEST
(
strcmp
(
s
,
"string"
) ==
0
);
18
19
return
0
;
20
}
21
22
void
cleanup
(
void
) {}