alternative to strcat/strncat
hey guys,
i want to use a string which includes a path to a folder several times for linking to different files that shall be copied. The path might change from machine to machine and the user is able to set it.
at the moment I am using
Code:
CopyFileA(strcat(path,"file1"),.....);
CopyFileA(strcat(path,"file2"),.....);
and so on
which of course does not work because overwrites path after each call - so for it is not useable any more.
is there a more comfortable way instead of e.g. defining a char variable for each file and copying the "initial" path once in it?
Thanks for your answers...