Posted by Matthew Kaoru Hallberg on 2000-02-02
Hi. I was wondering if anyone knew off hand how picky a read-in is using the sscanf method in c. I am running VC++ 6.0, and the line I would like to read in looks like 00000000: 00700012 000071111 080A0400 00000008 I can't find in any of my books how picky a sscanf is, and i was hoping that I don't have to worry about the spacings of the values, or the semi colon. my line would be sscanf(strOneLine,"%x %x %x %x %x\n", &Data.Reg[i], &Data.Reg[i+0x08], &Data.Reg[i+0x0F], etc, etc, ) but i dunno if the sscanf will rewad in the colon and try to interpret it as a number or not. thanks for the help. -matt Matthew Hallberg Assistant Engineer Galileo Technology 142 Charcot Ave. San Jose, CA 95131 408-367-1400 ext 237 matthew@xxxxxxxx.xxx To signoff send a mail to listserver@xxxx.xx.xx with "signoff tcg" in the body of your message.
Previous post | Next post | Timeline | Home