char* next(FILE *fp) { #if HAVE_GETLINE return return_buf(getline(&buf_, &len_, fp)); #else // if GNU getline() is not available, use very simple replacement return return_buf(our_getline(&buf_, &len_, fp)); #endif }
void test_return_stack_memory_ok() { char stack_buf[100]; char *pos = return_buf(stack_buf); (void) pos; }
char* gz_next(gzFile gz_stream) { return return_buf(gzipped_getline(&buf_, &len_, gz_stream)); }