J
josegomez
Hi!
I want to produce a number of output filenames, which contain a
directory part, and a file aprt (e.g., /home/user1/dir1/file.dat would
be one). I have the directory in one char array, and the filename in a
different one. Using strncat and strncpy one can manage that, but i
would like the code do intelligently deal with the forward (UNIX) and
backwards-slash (Windows) directory naming convention. Is there a
standard way of creating this things, rather strtok-ing the string for
/ and substituting for \ with a compiler conditional?
Thanks
Jose
I want to produce a number of output filenames, which contain a
directory part, and a file aprt (e.g., /home/user1/dir1/file.dat would
be one). I have the directory in one char array, and the filename in a
different one. Using strncat and strncpy one can manage that, but i
would like the code do intelligently deal with the forward (UNIX) and
backwards-slash (Windows) directory naming convention. Is there a
standard way of creating this things, rather strtok-ing the string for
/ and substituting for \ with a compiler conditional?
Thanks
Jose