5

Getting values from a string

view full story
linux-howto

http://www.unix.com – I have a string Code: s = " 1.0007126 6.8643880e+05 3.2924832e-09 9.4557639e+02  1.6407053 4.3481956e+03" The numbers are separated by spaces and I want to get the first two numbers. I am programming in Fortran, however a solution in c might be ok. (HowTos)