示例#1
0
/* Get line.  Remove trailing \n */
char* xmalloc_fgetline(FILE *file)
{
	int i;
	char *c = bb_get_chunk_with_continuation(file, &i,NULL);
	if (i && c[--i] == '\n')
		c[i] = '\0';
	return c;
}
char* FAST_FUNC bb_get_chunk_from_file(FILE *file, int *end)
{
	return bb_get_chunk_with_continuation(file, end, NULL);
}