Hi..U can try it with strsep( ) with similar type of arguments...
By using strtok(), if I read the /etc/passwd file with delimiter
":",
I am not getting expected result. For example, if a line contains
rpm:x:37:37::/var/lib/rpm:/bin/bash
the '::' is read at once instead of twice.
Is there any other way to read data with delimiter ?