make cut buffer displays interruptible
[nvi.git] / common / args.h
blob6c9cd964ea60467738367abc75354cedbd41df21
1 /*-
2 * Copyright (c) 1993
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 $
8 */
11 * Structure for building "argc/argv" vector of arguments.
13 * !!!
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
18 * is found.
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. */
26 u_char flags;
27 } ARGS;