Helper Reference Manual  1.7.1
ODPH STRING

API Description

String helper.

Functions

static ODP_UNUSED char * odph_strcpy (char *restrict dst, const char *restrict src, size_t sz)
 Copy a string. More...
 

Function Documentation

◆ odph_strcpy()

static ODP_UNUSED char* odph_strcpy ( char *restrict  dst,
const char *restrict  src,
size_t  sz 
)
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.

Parameters
[out]dstPointer to destination string.
srcPointer to source string.
szDestination size.
Returns
Pointer to destination string.

Definition at line 45 of file string.h.