[A89] Another Stupid String Question


[Prev][Next][Index][Thread]

[A89] Another Stupid String Question



I have a string declared like this:

char *string;

This string will contain a pathName and variableName, such as 
"main\testprog". I want to put the pathName in one string, and the 
variableName in the other. I just can't figure this out! I've been trying to 
use strncat and strncpy, but nothing I do works.

Can anyone come up with code to do this for me? Thanks a lot!




Follow-Ups: