> hi, i m new in language c. how do i write a function that can split a > string into 4 character? example: a input string as "abcd" and output as > n1="a",n2="b",n3="c",n4="d" thanks
man 3 strtok. It does what you want.
If the number of fields is fixed, use sscanf.
..or roll your own "stringsep" function.
d.
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/
