source: SHX/trunk/sandbox/sscanf.c @ 138

Revision 138, 250 bytes checked in by marcus, 11 years ago (diff)
  • locale issue discovered
Line 
1/*  build: gcc -shared -o sscanflib.so sscanf.c
2 */
3
4#include <stdio.h>
5
6void test() {
7        int i;
8        float a, b = 0;
9       
10        i = sscanf("slowness: 4.3 - 12.9\n", "slowness:%f\n-%f\n", &a, &b);
11       
12        printf("#%i: %.2f %.2f\n", i, a, b);
13}
14
15int main() {
16        test();
17}
Note: See TracBrowser for help on using the repository browser.