home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The C Users' Group Library 1994 August
/
wc-cdrom-cusersgrouplibrary-1994-08.iso
/
listings
/
v_10_10
/
1010026b
< prev
next >
Wrap
Text File
|
1992-08-10
|
290b
|
20 lines
#include <stdio.h>
#define MAXLINE 80
main()
{
char s1[MAXLINE+1], s2[MAXLINE+1];
int n1, n2;
scanf(" %[^,],%i ,%i , %[^\n]",s1,&n1,&n2,s2);
printf("%s,%d,%d,%s\n",s1,n1,n2,s2);
return 0;
}
Input
key 1,0x20,10,value one
Output
key 1,32,10,value one