File: stpncpy.3

package info (click to toggle)
manpages-ja 0.5.0.0.20100315-1
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 21,156 kB
  • ctags: 1
  • sloc: sh: 13,935; perl: 157; makefile: 114
file content (50 lines) | stat: -rw-r--r-- 1,660 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
.\" Copyright (c) Bruno Haible <haible@clisp.cons.org>
.\"
.\" This is free documentation; you can redistribute it and/or
.\" modify it under the terms of the GNU General Public License as
.\" published by the Free Software Foundation; either version 2 of
.\" the License, or (at your option) any later version.
.\"
.\" References consulted:
.\"   GNU glibc-2 source code and manual
.\"
.\" Corrected, aeb, 990824
.\"
.\" Japanese Version Copyright (c) 1999 HANATAKA Shinya
.\"         all rights reserved.
.\" Translated Tue Jan 11 00:55:50 JST 2000
.\"         by HANATAKA Shinya <hanataka@abyss.rim.or.jp>
.\"
.TH STPNCPY 3 1999-07-25 "GNU" "Linux Programmer's Manual"
.SH ̾
stpncpy \- Ĺʸ򥳥ԡơκǸؤΥݥ󥿡֤
.SH 
.nf
.B #define _GNU_SOURCE
.br
.B #include <string.h>
.sp
.BI "char *stpncpy(char *" dest ", const char *" src ", size_t " n );
.fi
.SH 
.BR stpncpy ()
ؿ \fIsrc\fP ؤƤʸ󤫤齪ü \(aq\\0\(aq ʸ
ޤƺ \fIn\fP ХȤ \fIdest\fP ˥ԡ롣Ĺ
\fIstrlen(src)\fP  \fIn\fP 꾮ˤ \fIdest\fP λĤ
ʬˤ  \(aq\\0\(aq ʸ롣Ĺ \fIstrlen(src)\fP  \fIn\fP ʾ
ʤС\fIdest\fP ؤʸ \(aq\\0\(aq ǽüƤʤ
.PP
ĤʸϽŤʤäƤϤʤʤ
.PP
ץޡ \fIdest\fP ˾ʤȤ \fIn\fP ХȤζ뤳Ȥ
ݾڤʤФʤʤ
.SH ֤
.BR stpncpy ()
 \fIdest\fP νüΥʥʸؤݥ󥿡֤
\fIdest\fP ʥʸǽüƤʤˤ \fIdest + n\fP ֤
.SH 
δؿ GNU γĥǤ롣
.SH Ϣ
.BR strncpy (3),
.BR wcpncpy (3),
.BR feature_test_macros (7)