Hi,
I need to split the input i receive from my file into two parts.
File looks like this
customerNo <space> typeofrequest
eg
1122 deposit
how do i get the customer number as one string and the request in another?.
I can do it in Java, but because c doesnt have checks like variablename.equals();
i'm at a loss..
Thanks.



LinkBack URL
About LinkBacks



In <string.h> there's a function called strcmp that performs the equivalent operation as x.equals(y);. But because there isn't a native substring function, you would be better off using quzah's suggestion.