stdarg.3 (32eef9aeb1f39a1623cea55da147c89abbd5b9a5) | stdarg.3 (86954511d26c1e6cc6d3f386e055458947f4baae) |
---|---|
1.\" Copyright (c) 1990, 1991, 1993 2.\" The Regents of the University of California. All rights reserved. 3.\" 4.\" This code is derived from software contributed to Berkeley by 5.\" the American National Standards Committee X3, on Information 6.\" Processing Systems. 7.\" 8.\" Redistribution and use in source and binary forms, with or without --- 22 unchanged lines hidden (view full) --- 31.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 32.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 33.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 34.\" SUCH DAMAGE. 35.\" 36.\" @(#)stdarg.3 8.1 (Berkeley) 6/5/93 37.\" $FreeBSD$ 38.\" | 1.\" Copyright (c) 1990, 1991, 1993 2.\" The Regents of the University of California. All rights reserved. 3.\" 4.\" This code is derived from software contributed to Berkeley by 5.\" the American National Standards Committee X3, on Information 6.\" Processing Systems. 7.\" 8.\" Redistribution and use in source and binary forms, with or without --- 22 unchanged lines hidden (view full) --- 31.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 32.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 33.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 34.\" SUCH DAMAGE. 35.\" 36.\" @(#)stdarg.3 8.1 (Berkeley) 6/5/93 37.\" $FreeBSD$ 38.\" |
39.Dd June 5, 1993 | 39.Dd September 18, 2002 |
40.Dt STDARG 3 41.Os 42.Sh NAME 43.Nm stdarg 44.Nd variable argument lists 45.Sh SYNOPSIS 46.In stdarg.h 47.Ft void 48.Fn va_start "va_list ap" last 49.Ft type 50.Fn va_arg "va_list ap" type 51.Ft void | 40.Dt STDARG 3 41.Os 42.Sh NAME 43.Nm stdarg 44.Nd variable argument lists 45.Sh SYNOPSIS 46.In stdarg.h 47.Ft void 48.Fn va_start "va_list ap" last 49.Ft type 50.Fn va_arg "va_list ap" type 51.Ft void |
52.Fn va_copy "va_list dest" "va_list src" 53.Ft void |
|
52.Fn va_end "va_list ap" 53.Sh DESCRIPTION 54A function may be called with a varying number of arguments of varying 55types. 56The include file 57.Aq Pa stdarg.h 58declares a type 59.Pq Em va_list --- 67 unchanged lines hidden (view full) --- 127macro after that of the 128.Fn va_start 129macro returns the argument after 130.Fa last . 131Successive invocations return the values of the remaining 132arguments. 133.Pp 134The | 54.Fn va_end "va_list ap" 55.Sh DESCRIPTION 56A function may be called with a varying number of arguments of varying 57types. 58The include file 59.Aq Pa stdarg.h 60declares a type 61.Pq Em va_list --- 67 unchanged lines hidden (view full) --- 129macro after that of the 130.Fn va_start 131macro returns the argument after 132.Fa last . 133Successive invocations return the values of the remaining 134arguments. 135.Pp 136The |
137.Fn va_copy 138macro copies a variable argument list, previously initialized by 139.Fn va_start , 140from 141.Va src 142to 143.Va dest . 144The state is preserved such that it is equivalent to calling 145.Fn va_start 146with the same second argument used with 147.Va src , 148and calling 149.Fn va_arg 150the same number of times as called with 151.Va src . 152.Pp 153The 154.Fn va_copy 155macro returns no value. 156.Pp 157The |
|
135.Fn va_end 136macro handles a normal return from the function whose variable argument 137list was initialized by 138.Fn va_start . 139.Pp 140The 141.Fn va_end 142macro returns no value. --- 65 unchanged lines hidden --- | 158.Fn va_end 159macro handles a normal return from the function whose variable argument 160list was initialized by 161.Fn va_start . 162.Pp 163The 164.Fn va_end 165macro returns no value. --- 65 unchanged lines hidden --- |