Annotated edit history of
stpncpy(3) version 1 showing authors affecting page license.
View with all changes included.
Rev |
Author |
# |
Line |
1 |
perry |
1 |
STPNCPY |
|
|
2 |
!!!STPNCPY |
|
|
3 |
NAME |
|
|
4 |
SYNOPSIS |
|
|
5 |
DESCRIPTION |
|
|
6 |
RETURN VALUE |
|
|
7 |
CONFORMING TO |
|
|
8 |
SEE ALSO |
|
|
9 |
---- |
|
|
10 |
!!NAME |
|
|
11 |
|
|
|
12 |
|
|
|
13 |
stpncpy - copy a fixed-size string, returning a pointer to its end |
|
|
14 |
!!SYNOPSIS |
|
|
15 |
|
|
|
16 |
|
|
|
17 |
__#include |
|
|
18 |
__''dest''__, const char *__''src''__, size_t__ ''n''__); |
|
|
19 |
__ |
|
|
20 |
!!DESCRIPTION |
|
|
21 |
|
|
|
22 |
|
|
|
23 |
The __stpncpy__ function copies at most ''n'' |
|
|
24 |
characters from the string pointed to by ''src'', |
|
|
25 |
including the terminating '0' character, to the array |
|
|
26 |
pointed to by ''dest''. Exactly ''n'' characters are |
|
|
27 |
written at ''dest''. If the length ''strlen(src)'' is |
|
|
28 |
smaller than ''n'', the remaining characters in the array |
|
|
29 |
pointed to by ''dest'' are filled with '0' characters. If |
|
|
30 |
the length ''strlen(src)'' is greater or equal to |
|
|
31 |
''n'', the string pointed to by ''dest'' will not be |
|
|
32 |
'0' terminated. |
|
|
33 |
|
|
|
34 |
|
|
|
35 |
The strings may not overlap. |
|
|
36 |
|
|
|
37 |
|
|
|
38 |
The programmer must ensure that there is room for at least |
|
|
39 |
''n'' characters at ''dest''. |
|
|
40 |
!!RETURN VALUE |
|
|
41 |
|
|
|
42 |
|
|
|
43 |
__stpncpy__ returns a pointer to the terminating null in |
|
|
44 |
''dest'', or, if ''dest'' is not null-terminated, |
|
|
45 |
''dest + n''. |
|
|
46 |
!!CONFORMING TO |
|
|
47 |
|
|
|
48 |
|
|
|
49 |
This function is a GNU extension. |
|
|
50 |
!!SEE ALSO |
|
|
51 |
|
|
|
52 |
|
|
|
53 |
strncpy(3) |
|
|
54 |
---- |
This page is a man page (or other imported legacy content). We are unable to automatically determine the license status of this page.