Example: strcat

The following example uses strcat to append a backslash to the directory name, fullpath. It then appends filename to fullpath.

    #include <string.h>
    char fullpath[1024], * filename = "logfile.txt";
    strcpy(fullpath, "c:\\tmp");
    strcat(fullpath, "\\");
    strcat(fullpath, filename);
    lr_output_message ("Full path of file is %s", fullpath);
Output:
Action.c(9): Full path of file is c:\tmp\logfile.txt