Template:ddcl list begin <tr class="t-dsc-header"><td>
<td></td> <td></td> <tr class="t-dcl "><td >
<td class="t-dcl-nopad"> </td> <td > (until C99) </td> </tr> <tr class="t-dcl "><td >
<td class="t-dcl-nopad"> </td> <td > (since C99) </td> </tr> Template:ddcl list end
Copies at most
count characters of the byte string pointed to by
src (including the terminating null character) to character array pointed to by
count is reached before the entire string
src was copied, the resulting character array is not null-terminated.
If, after copying the terminating null character from
count is not reached, additional null characters are written to
dest until the total of
count characters have been written.
If the strings overlap, the behavior is undefined.
|dest||-||pointer to the character array to copy to|
|src||-||pointer to the byte string to copy from|
|count||-||maximum number of characters to copy|
|This section is incomplete|
Reason: no example
C++ documentation for strncpy