Helper Reference Manual
1.7.1
|
String helper.
Functions | |
static ODP_UNUSED char * | odph_strcpy (char *restrict dst, const char *restrict src, size_t sz) |
Copy a string. More... | |
|
static |
Copy a string.
Like strncpy(), but additionally ensures that the destination string is null terminated, unless sz is zero in which case returns dst without doing anything else.
This function may be called before ODP initialization.
[out] | dst | Pointer to destination string. |
src | Pointer to source string. | |
sz | Destination size. |