Share this page

# strncpy

Example: strncpy | String Manipulation Functions

Copies the first n characters of one string to another.

    char *strncpy( char *dest, const char *source, size_t n );

dest | The destination string to which n characters are copied.
source | The source string from which n characters are copied.
n | The number of characters copied.

## Return Values

Returns the destination string.

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: