Reading a string in C until an integer is encountered (in file) -
How long can I read a string in C, unless I get an integer? For example: 1000 ball pen 12 15 24 I need to separate the "ball pen" from the integer. How is this done?
By the way I would have to do this to get the full line To use it, manually parse it by doing something:
strtoul in a loop.
Comments
Post a Comment