pl_strcpy.rst (650B)
1 PL_strcpy 2 ========= 3 4 5 Copies a string, up to and including the trailing ``'\0'``, into a 6 destination buffer. 7 8 9 Syntax 10 ~~~~~~ 11 12 .. code:: 13 14 char * PL_strcpy(char *dest, const char *src); 15 16 17 Parameters 18 ~~~~~~~~~~ 19 20 The function has these parameters: 21 22 ``dest`` 23 Pointer to a buffer. On output, the buffer contains a copy of the 24 string passed in src. 25 ``src`` 26 Pointer to the string to be copied. 27 28 29 Returns 30 ~~~~~~~ 31 32 The function returns a pointer to the buffer specified by the ``dest`` 33 parameter. 34 35 36 Description 37 ~~~~~~~~~~~ 38 39 If the string specified by ``src`` is longer than the buffer specified 40 by ``dest``, the buffer will not be null-terminated.