VMS Help  —  CRTL  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);

1  –  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.

2  –  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>.

    For an example of argument-list processing using the <stdarg.h>
    functions and definitions, see the "Character, String, and
    Argument-List Functions" chapter of the HP C RTL Reference
    Manual.
Close Help