3 * The Regents of the University of California. All rights reserved.
5 * %sccs.include.redist.c%
7 * $Id: args.h,v 8.3 1993/12/19 17:24:54 bostic Exp $ (Berkeley) $Date: 1993/12/19 17:24:54 $
11 * Structure for building "argc/argv" vector of arguments.
14 * All arguments are nul terminated as well as having an associated length.
15 * The argument vector is NOT necessarily NULL terminated. The proper way
16 * to check the number of arguments is to use the argc value in the EXCMDARG
17 * structure or to walk the array until an ARGS structure with a length of 0
20 typedef struct _args
{
21 CHAR_T
*bp
; /* Argument. */
22 size_t blen
; /* Buffer length. */
23 size_t len
; /* Argument length. */
25 #define A_ALLOCATED 0x01 /* If allocated space. */