| iMatix home page
| << | < | > | >>
SFL Logo SFL
Version 2.11

 

linebuf_next

#include "sfllbuf.h"
char *
linebuf_next (LINEBUF *buffer, DESCR *descr, const char *curline)

Synopsis

Fetches the next line in the buffer, using the pointer that was returned by linebuf first(). Returns NULL if there are no more lines in the buffer, or a pointer for further calls. The line is stored in the supplied descriptor, and is truncated if the descriptor is too small.

Source Code - (sfllbuf.c)

{
    ASSERT (buffer);
    ASSERT (descr);
    ASSERT (curline);

    if (curline == buffer-> head)
        return (NULL);                  /*  We're at the end                 */
    else
        return (get_line (buffer, descr, curline));
}

| << | < | > | >> iMatix Copyright © 1996-2000 iMatix Corporation