gfs_pio_getline(3)

gfs_pio_getline3

Read a line

Usage

#include <gfarm/gfarm.h>

char *gfs_pio_getline (GFS_File f, char * s, size_t size, int * eofp);

Overview

gfs_pio_getline() reads a line from the file gf, and stores to the buffer starting at s at most size - 1 bytes. It is indistinguishable whether the length of a line is more than size or equal to size - 1. It sets 1 into the address pointed by eofp on end of file, otherwise it sets 0.

Return values

NULL

The function terminated successfully.

GFARM_ERR_NO_MEMORY

Insufficient memory was available.

Others

An error except the above occurred. The reason is shown by its pointed strings.

Releases

Unchanged in 2 releases since Debian 6.0 (Squeeze).

  1. 6.0–7

From libgfarm-dev 2.4.1-1.1 in Debian 7 (Wheezy). Parsed by carta from the page's man source.