Mail Archives: djgpp/1994/12/15/07:27:25
Hello,
my question is not djgpp-specific (sorry), but maybe some of you knows:
I used to scan strings, e.g. " ORIENTATION DISTRIBUTION FUNCTION, FI" = 5.0 ",
by sscanf(ls,"%*[A-Z,2 ]%*[= ]%f",&t);
where ls is the string and t should be 5.0. Everything was fine until I had to
run this with C SET++, where the short [A-Z,2 ] must be replaced with a
longer enumeration of possible characters.
The C Programmer's Handbook tells me the shorter form should work ?!
Who's right?
Sorry again for bandwidth, but this mailing list is my only window into the
shine world of C-programming.
Thomas.
- Raw text -