Build fix.
[AROS.git] / test / clib / sscanf.c
blobbbeb5d63e86a39546eea6a537e1dd9549741fa6b
1 #include <stdio.h>
2 #include <string.h>
4 #include "test.h"
6 int main(void)
8 char s[10];
9 static char text[] = "1.3 1 string";
10 int i, cnt;
11 float f;
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);
19 return 0;
22 void cleanup(void) {}