FreeBSD/usr.bin/last/last.c
/*
 * addarg --
 *	add an entry to a linked list of arguments
 */
addarg
add an entry to a linked list of arguments
addarg add an entry to a linked list of arguments
static void
addarg(int type, char *arg)
{
	ARG *cur;
	if ((cur = malloc(sizeof(ARG))) == NULL)
		errx(1, "malloc failure");
	cur->next = arglist;
	cur->type = type;
	cur->name = arg;
	arglist = cur;
}
static void addarg ( int type , char * arg ) { ARG * cur ; if ( ( cur = malloc ( sizeof ( ARG ) ) ) == NULL ) errx ( 1 , " " ) ; cur -> next = arglist ; cur -> type = type ; cur -> name = arg ; arglist = cur ; }
addarg
      add an entry to a linked list of arguments
addarg add an entry to a linked list of arguments