llu not working in fscanf ??
Asked by
Will Smith
given text input from file as:
10000,
020,0xf123456ab
while(!feof(pat)){
fscanf(pat," %llu%*[ ,\n]",&conv); // should convert decimal, octal, or hex notation, but this is not the case...chokes on 'x'
using %llx does convert hex, but converts everything else as hex too (which is not the desired behavior).
(some of the *[ ... notation to discard commas and white space may not be optimized)
is this a bug?
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- Ubuntu glibc Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask Will Smith for more information if necessary.
To post a message you must log in.