Copy a string from src to dest, up to the given length.
Equivalent to the standard C library function strncpy().
- Parameters
-
| dest | Pointer to a buffer to receive the copied string. Must not be NULL. |
| src | Pointer to a string to be copied. Must not be NULL. |
| n | Maximum number of characters to copy. Can be 0, in which case no action is taken. |