|
SDDS ToolKit Programs and Libraries for C and Python
|
Implementation of the strcpy_ss function for safe string copying.
This file contains the implementation of the strcpy_ss function, which safely copies a string from the source to the destination buffer, ensuring that overlapping memory regions are handled correctly.
Definition in file str_copy.c.
#include <string.h>#include "mdb.h"Go to the source code of this file.
Functions | |
| char * | strcpy_ss (char *dest, const char *src) |
| Safely copies a string, handling memory overlap. | |
| char * strcpy_ss | ( | char * | dest, |
| const char * | src ) |
Safely copies a string, handling memory overlap.
Copies the string pointed to by src, including the terminating null byte, to the buffer pointed to by dest. This function ensures that the copy is performed safely even if the source and destination buffers overlap.
| dest | Pointer to the destination buffer where the string will be copied. |
| src | Pointer to the null-terminated source string to copy. |
dest. Definition at line 34 of file str_copy.c.