C Board  

Go Back   C Board > General Programming Boards > C Programming

Reply
 
LinkBack Thread Tools Display Modes
Old 11-30-2009, 09:09 PM   #1
Registered User
 
Join Date: Nov 2009
Posts: 3
Question about format specifiers in C

Hello,

Can someone explain me what does this mean?

"40[^\"], %*c"

Thanks
fedya is offline   Reply With Quote
Old 11-30-2009, 10:40 PM   #2
Registered User
 
Join Date: Apr 2006
Posts: 1,309
I think it's missing an initial %.

If so then it is meant to read up to 40 character untill the next ". Then it ignores a comma, whitespace character, and any character in that order.
__________________
It is too clear and so it is hard to see.
A dunce once searched for fire with a lighted lantern.
Had he known what fire was,
He could have cooked his rice much sooner.
King Mir is offline   Reply With Quote
Old 12-01-2009, 02:31 AM   #3
CSharpener
 
vart's Avatar
 
Join Date: Oct 2006
Posts: 5,319
and so it will have a problem - because when parsing of %40[^\"] stops - most likely next not read character in the stream will be " and not , expected by the format - so the parsing will stop there
__________________
If I have eight hours for cutting wood, I spend six sharpening my axe.
vart is online now   Reply With Quote
Reply

Thread Tools
Display Modes

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
another do while question kbpsu C++ Programming 3 03-23-2009 12:14 PM
Program format Question deadhippo C Programming 0 05-13-2008 10:33 PM
gcc/borland and sscanf format specifiers Sargnagel C Programming 2 01-24-2003 06:40 PM
%e format question sewilli C Programming 2 11-07-2002 07:35 PM
Declaring the format function GaPe C Programming 1 09-11-2002 09:10 AM


All times are GMT -6. The time now is 11:37 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22