va_end

Finishes the <varargs.h> or <stdarg.h> session.

Format

#include  <stdarg.h>  (ANSI C)

#include  <varargs.h> (DEC C
          Extension)

void va_end  (va_list ap);

Argument

ap
The object used to traverse the argument list length. You must declare and use the argument ap as shown in this format section.

Description

You can execute multiple traversals of the argument list, each delimited by va_start . . . va_end. The va_end function sets ap equal to NULL.

When using this function to write portable applications, include the <stdarg.h> header file (defined by the ANSI C standard), not the <varargs.h> header file, and use va_end only in conjunction with other routines defined in <stdarg.h>.


Previous Page | Next Page | Table of Contents | Index