Share this page

# Example: memmove

The following example moves the first 4 characters 1 space forward. Because the first character, `a', remains unchanged, "abcde" becomes "aabcd".

         #include <string.h>

         char buffer[80];
         strcpy( buffer, "abcde");
         memmove(buffer+1, buffer, 4 );
         lr_output_message ("New string: %s\n", buffer);

    Example: Output:
    New string: aabcd

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: