FreeBSD/sbin/atm/atmconfig/main.c
/*
 * This function prints the available 0-level help topics from all
 * other help files by scanning the files. It assumes, that this is called
 * only from the main help file.
 */
This function prints the available 0-level help topics from all
other help files by scanning the files. It assumes, that this is called
only from the main help file.
This function prints the available 0 - level help topics from all other help files by scanning the files . It assumes that this is called only from the main help file .
static void
help_get_0topics(struct help_file *hp)
{
	struct help_pos save;
	const char *line;
	memset(&save, 0, sizeof(save));
	help_file_tell(hp, &save);
	help_file_rewind(hp);
	while ((line = help_next_line(hp)) != NULL) {
		if (line[0] == '^' && line[1] == '^')
			printf("%s", line + 2);
	}
	help_file_seek(hp, &save);
}
static void help_get_0topics ( struct help_file * hp ) { struct help_pos save ; const char * line ; memset ( & save , 0 , sizeof ( save ) ) ; help_file_tell ( hp , & save ) ; help_file_rewind ( hp ) ; while ( ( line = help_next_line ( hp ) ) != NULL ) { if ( line [ 0 ] == ' ' && line [ 1 ] == ' ' ) printf ( " " , line + 2 ) ; } help_file_seek ( hp , & save ) ; }
This function prints the available 0-level help topics from all
 other help files by scanning the files.
This function prints the available 0 - level help topics from all other help files by scanning the files .