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:

  1. Read the initial integer. It can be done easily. .
  2. Read the letters, when they are not points (using).
  3. Unless you have all the numbers, then strtoul in a loop.

Comments

Popular posts from this blog

excel vba - How to delete Solver(SOLVER.XLAM) code -

github - Teamcity & Git - PR merge builds - anyway to get HEAD commit hash? -

ios - Replace text in UITextView run slowly -