GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing man.openbsd.org — getdelim(3) - OpenBSD manual pages NAME
SYNOPSIS
ssize_t
ssize_t
DESCRIPTIONThe
If *n is non-zero, then
*lineptr must be pre-allocated to at least
*n bytes. The buffer should be allocated dynamically;
it must be possible to free(3) *lineptr.
The
RETURN VALUESThe The functions do not distinguish between end-of-file and error, and callers must use feof(3) and ferror(3) to determine which occurred. EXAMPLESThe following code fragment reads lines from a file and writes them to standard output. char *line = NULL; size_t linesize = 0; ssize_t linelen; while ((linelen = getline(&line, &linesize, fp)) != -1) fwrite(line, linelen, 1, stdout); free(line); if (ferror(fp)) err(1, "getline"); ERRORS
The SEE ALSOSTANDARDSThe HISTORYThese functions were ported from NetBSD to OpenBSD 5.2. |
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |