P
Puneet
Hi,
Proabably my solution is not a good solution but it can help and this
is what you want.
char *c="file.txt";
char *con="AB.txt"
char *result;
strncpy (result, c, strlen(c)-strlen(".txt"));
strcat (result, con);
puts (result);
PG.
Proabably my solution is not a good solution but it can help and this
is what you want.
char *c="file.txt";
char *con="AB.txt"
char *result;
strncpy (result, c, strlen(c)-strlen(".txt"));
strcat (result, con);
puts (result);
PG.