say I have a string which always has a '\t' at the start of that string, how do I get all the string after that '\t' (tab)??
say I have a string which always has a '\t' at the start of that string, how do I get all the string after that '\t' (tab)??
strtok(str, "\t") should do that - check for NULL returned, which means no \t was found.
or strchr(str, '\t'), works the same way.
--
Compilers can produce warnings - make the compiler programmers happy: Use them!
Please don't PM me for help - and no, I don't do help over instant messengers.
Add 1 to your string pointer in any reference to it.
Mainframe assembler programmer by trade. C coder when I can.