VA_ARG(P) POSIX Programmer's Manual VA_ARG(P)
NAME
va_arg, va_copy, va_end, va_start - handle variable argument list
SYNOPSIS
#include <stdarg.h>
type va_arg(va_list ap, type);
void va_copy(va_list dest, va_list src);
void va_end(va_list ap);
void va_start(va_list ap, argN);
DESCRIPTION
Refer to the Base Definitions volume of IEEE Std 1003.1-2001, <stdarg.h>.
COPYRIGHT
Portions of this text are reprinted and reproduced in electronic form from IEEE Std 1003.1, 2003 Edition, Standard for Information Technol-
ogy -- Portable Operating System Interface (POSIX), The Open Group Base Specifications Issue 6, Copyright (C) 2001-2003 by the Institute of
Electrical and Electronics Engineers, Inc and The Open Group. In the event of any discrepancy between this version and the original IEEE
and The Open Group Standard, the original IEEE and The Open Group Standard is the referee document. The original Standard can be obtained
online at http://www.opengroup.org/unix/online.html .
IEEE /The Open Group 2003 VA_ARG(P)
Check Out this Related Man Page
VA_ARG(3P) POSIX Programmer's Manual VA_ARG(3P)PROLOG
This manual page is part of the POSIX Programmer's Manual. The Linux implementation of this interface may differ (consult the correspond-
ing Linux manual page for details of Linux behavior), or the interface may not be implemented on Linux.
NAME
va_arg, va_copy, va_end, va_start -- handle variable argument list
SYNOPSIS
#include <stdarg.h>
type va_arg(va_list ap, type);
void va_copy(va_list dest, va_list src);
void va_end(va_list ap);
void va_start(va_list ap, argN);
DESCRIPTION
Refer to the Base Definitions volume of POSIX.1-2008, <stdarg.h>
COPYRIGHT
Portions of this text are reprinted and reproduced in electronic form from IEEE Std 1003.1, 2013 Edition, Standard for Information Technol-
ogy -- Portable Operating System Interface (POSIX), The Open Group Base Specifications Issue 7, Copyright (C) 2013 by the Institute of
Electrical and Electronics Engineers, Inc and The Open Group. (This is POSIX.1-2008 with the 2013 Technical Corrigendum 1 applied.) In the
event of any discrepancy between this version and the original IEEE and The Open Group Standard, the original IEEE and The Open Group Stan-
dard is the referee document. The original Standard can be obtained online at http://www.unix.org/online.html .
Any typographical or formatting errors that appear in this page are most likely to have been introduced during the conversion of the source
files to man page format. To report such errors, see https://www.kernel.org/doc/man-pages/reporting_bugs.html .
IEEE /The Open Group 2013 VA_ARG(3P)
In this piece i implemented the gossip method. The first thread is invoked from inside the (msg is first sent from node -1 to 0 from main()) and the other threads are invoked from inside of the thread function itself. I used two mutexes and a condition variable to control the synchronization. ... (4 Replies)
I have put some yellow color codes and works well.
I call the funstion using
print_usage(stderr, 0);
I would like to know if there is any way, to store the ansi color codes in variables and then call them inside fprintf.
Or have a format followed by the strings I want to output.
... (5 Replies)
Hi, how do you identify if a java process is running in Unix? So for example if I have 8 JVM's running but I want to make sure one of them has definately stopped? (1 Reply)
Hi.
The problem is to write logs in a shared file from several processes.
The cooperate call of fprintf() leads to messing the content even in one call
example:
fprintf(f,"a1 \n a2");
fprintf(f,"a3 \n a4");
out:
a1
a3
a2
a4
Ofcourse this is possible to implement the file as a... (9 Replies)
Hi,
I haven't programed in C in a few years. I have been doing a lot of shell scripting, I.E. not really programming anything heavy. :o
That said, I have a script that gives hourly usage statistics for our email server. It runs w-a-y to slow as a script for my impatience, and needs to... (7 Replies)
I noticed this process running on one of our servers, any ideas what it's doing? It's obviously an update agent, but its running on some of our servers and not others (all standard build)
root 6594 1 0 May28 ? 00:00:03 java -Dupdateagent -Djava.endorsed.dirs=.... (4 Replies)
Hi,
When I do ps -ef | grep java I get the following output on my server, But how to get just the last line and the pid....something like:-
wasadmin@ccos2104:TEST:bin> ps -ef | grep java
wasadmin 5935 54288 0 12:39 pts/8 00:00:00 grep java
ccos2104Cell ccos2104 aa
... (2 Replies)
Good afternoon
I need your help please.
There is a Mantenance Windos which needs to Restart de Database Server 192.x.x.97 to set up some configuration
Is it mandatory or not to stop/start Applcation server that runs in 192.x.x.95 ?
Is it mandatory or not to stop/start apache and Tomcat?... (3 Replies)
Been a while since my last post. Had a laptop die with my last project and still working to get it back. In the meantime I started another.
In my main function I define some arguments with getopt:
int main ( int argc, char **argv) {
int option_index = 0;
char *fname = "./commands";
... (3 Replies)
I am trying to illustrate the reverse order of parameters on the stack when passed to a function in C:
#include <stdio.h>
void p(int p1, int p2, double p3)
{
printf("params:\n"
"1) %p offset = %li\n"
"2) %p offset = %li\n"
... (5 Replies)