]>
Commit | Line | Data |
---|---|---|
fea681da MK |
1 | .\" Copyright (c) Bruno Haible <haible@clisp.cons.org> |
2 | .\" | |
3 | .\" This is free documentation; you can redistribute it and/or | |
4 | .\" modify it under the terms of the GNU General Public License as | |
5 | .\" published by the Free Software Foundation; either version 2 of | |
6 | .\" the License, or (at your option) any later version. | |
7 | .\" | |
8 | .\" References consulted: | |
9 | .\" GNU glibc-2 source code and manual | |
10 | .\" Dinkumware C library reference http://www.dinkumware.com/ | |
11 | .\" OpenGroup's Single Unix specification http://www.UNIX-systems.org/online.html | |
12 | .\" ISO/IEC 9899:1999 | |
13 | .\" | |
14 | .TH WCSNCAT 3 1999-07-25 "GNU" "Linux Programmer's Manual" | |
15 | .SH NAME | |
16 | wcsncat \- concatenate two wide-character strings | |
17 | .SH SYNOPSIS | |
18 | .nf | |
19 | .B #include <wchar.h> | |
20 | .sp | |
21 | .BI "wchar_t *wcsncat(wchar_t *" dest ", const wchar_t *" src ", size_t " n ); | |
22 | .fi | |
23 | .SH DESCRIPTION | |
c13182ef | 24 | The \fBwcsncat\fP() function is the wide-character equivalent of the |
fb186734 | 25 | \fBstrncat\fP(3) function. |
35478399 | 26 | It copies at most \fIn\fP wide characters from the wide-character |
fea681da MK |
27 | string pointed to by \fIsrc\fP to the end of the wide-character string pointed |
28 | to by \fIdest\fP, and adds a terminating L'\\0' character. | |
29 | .PP | |
30 | The strings may not overlap. | |
31 | .PP | |
32 | The programmer must ensure that there is room for at least | |
33 | \fIwcslen(dest)+n+1\fP wide characters at \fIdest\fP. | |
34 | .SH "RETURN VALUE" | |
e511ffb6 | 35 | \fBwcsncat\fP() returns \fIdest\fP. |
fea681da | 36 | .SH "CONFORMING TO" |
68e1685c | 37 | C99. |
fea681da MK |
38 | .SH "SEE ALSO" |
39 | .BR strncat (3), | |
40 | .BR wcscat (3) |