119304Speter/*- 219304Speter * Copyright (c) 1993, 1994 319304Speter * The Regents of the University of California. All rights reserved. 419304Speter * Copyright (c) 1993, 1994, 1995, 1996 519304Speter * Keith Bostic. All rights reserved. 619304Speter * 719304Speter * See the LICENSE file for redistribution information. 819304Speter * 9254225Speter * $Id: args.h,v 10.2 1996/03/06 19:50:07 bostic Exp $ 1019304Speter */ 1119304Speter 1219304Speter/* 1319304Speter * Structure for building "argc/argv" vector of arguments. 1419304Speter * 1519304Speter * !!! 1619304Speter * All arguments are nul terminated as well as having an associated length. 1719304Speter * The argument vector is NOT necessarily NULL terminated. The proper way 1819304Speter * to check the number of arguments is to use the argc value in the EXCMDARG 1919304Speter * structure or to walk the array until an ARGS structure with a length of 0 2019304Speter * is found. 2119304Speter */ 2219304Spetertypedef struct _args { 2319304Speter CHAR_T *bp; /* Argument. */ 2419304Speter size_t blen; /* Buffer length. */ 2519304Speter size_t len; /* Argument length. */ 2619304Speter 2719304Speter#define A_ALLOCATED 0x01 /* If allocated space. */ 2819304Speter u_int8_t flags; 2919304Speter} ARGS; 30