FreeBSD/usr.bin/sed/main.c
/*
 * Add a file to the linked list
 */
Add a file to the linked list
Add a file to the linked list
static void
add_file(char *s)
{
	struct s_flist *fp;
	if ((fp = malloc(sizeof(struct s_flist))) == NULL)
		err(1, "malloc");
	fp->next = NULL;
	*fl_nextp = fp;
	fp->fname = s;
	fl_nextp = &fp->next;
}
static void add_file ( char * s ) { struct s_flist * fp ; if ( ( fp = malloc ( sizeof ( struct s_flist ) ) ) == NULL ) err ( 1 , " " ) ; fp -> next = NULL ; * fl_nextp = fp ; fp -> fname = s ; fl_nextp = & fp -> next ; }
Add a file to the linked list
Add a file to the linked list