![]() |
| | #1 |
| Registered User Join Date: Nov 2009
Posts: 3
| Question about format specifiers in C Can someone explain me what does this mean? "40[^\"], %*c" Thanks |
| fedya is offline | |
| | #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 | |
| | #3 |
| CSharpener 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 | |
![]() |
| Thread Tools | |
| Display Modes | |
|
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 |