istream.c revision 211a5af4646ed51a0d449dd5065d91ff4a26f3a4
7ef3553585e556f35d5919589cfdc1de3329e4bbTimo Sirainen/* Copyright (c) 2002-2003 Timo Sirainen */
max_size);
return NULL;
char *ret;
end = i;
return ret;
char *ret_buf;
size_t i;
return NULL;
return NULL;
return ret_buf;
char *line;
return line;
return line;
*size_r = 0;
return NULL;
*size_r = 0;
return NULL;
if (ret > 0)
} while (ret > 0);
static const struct stat *
#ifdef STREAM_TEST
/* gcc istream.c -o teststream liblib.a -Wall -DHAVE_CONFIG_H -DSTREAM_TEST -g */
#include <fcntl.h>
#include <unistd.h>
#include "ostream.h"
size_t i;
for (i = 0; i < size; i++)
int main(void)
const unsigned char *data;
lib_init();
if (fd1 < 0)
if (fd2 < 0)
for (i = 0; i < sizeof(buf); i++)