Share this page

# 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);

    Example: Output:
    Action.c(9): Full path of file is c:\tmp\logfile.txt

Tips to improve your search results... VuGen Function Reference Version 25.1-25.3 Function Reference 25.1-25.3 All View Local Help Center View Online Help Center Version: