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
the '::' is read at once instead of twice.
Is there any other way to read data with delimiter ?