~ubuntu-branches/ubuntu/saucy/manpages/saucy

« back to all changes in this revision

Viewing changes to man3/stpncpy.3

  • Committer: Bazaar Package Importer
  • Author(s): Benjamin Drung
  • Date: 2010-11-17 16:35:58 UTC
  • mfrom: (1.1.45 upstream) (2.2.8 sid)
  • Revision ID: james.westby@ubuntu.com-20101117163558-9h3ho5jumqm3rdmd
Tags: 3.27-1ubuntu1
* Merge from Debian unstable; remaining changes:
  - ptrace.2, prctl.2: document Ubuntu-specific PTRACE_ATTACH,
    PR_SET_PTRACER behavior.

Show diffs side-by-side

added added

removed removed

Lines of Context:
9
9
.\"   GNU glibc-2 source code and manual
10
10
.\"
11
11
.\" Corrected, aeb, 990824
12
 
.TH STPNCPY 3  1999-07-25 "GNU" "Linux Programmer's Manual"
 
12
.TH STPNCPY 3  2010-09-15 "GNU" "Linux Programmer's Manual"
13
13
.SH NAME
14
14
stpncpy \- copy a fixed-size string, returning a pointer to its end
15
15
.SH SYNOPSIS
16
16
.nf
17
 
.B #define _GNU_SOURCE
18
 
.br
19
17
.B #include <string.h>
20
18
.sp
21
19
.BI "char *stpncpy(char *" dest ", const char *" src ", size_t " n );
22
20
.fi
 
21
.sp
 
22
.in -4n
 
23
Feature Test Macro Requirements for glibc (see
 
24
.BR feature_test_macros (7)):
 
25
.in
 
26
.sp
 
27
.BR stpncpy ():
 
28
.PD 0
 
29
.ad l
 
30
.RS 4
 
31
.TP 4
 
32
Since glibc 2.10:
 
33
_XOPEN_SOURCE\ >=\ 700 || _POSIX_C_SOURCE\ >=\ 200809L
 
34
.TP
 
35
Before glibc 2.10:
 
36
_GNU_SOURCE
 
37
.RE
 
38
.ad
 
39
.PD
23
40
.SH DESCRIPTION
24
41
The
25
42
.BR stpncpy ()
51
68
.BR wcpncpy (3),
52
69
.BR feature_test_macros (7)
53
70
.SH COLOPHON
54
 
This page is part of release 3.26 of the Linux
 
71
This page is part of release 3.27 of the Linux
55
72
.I man-pages
56
73
project.
57
74
A description of the project,