home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The C Users' Group Library 1994 August
/
wc-cdrom-cusersgrouplibrary-1994-08.iso
/
vol_300
/
334_02
/
scanf.c
< prev
next >
Wrap
Text File
|
1991-02-05
|
254b
|
13 lines
#include <stdio.h>
main()
{
float x,y;
sscanf("0 12", "%f %f\n", &x, &y);
printf("%f, %f should be %f, %f\n", x, y, 0., 12.);
sscanf("00 12", "%f %f\n", &x, &y);
printf("%f, %f should be %f, %f\n", x, y, 0., 12.);
}