Query: getln2
OS: debian
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
getln2(3) Library Functions Manual getln2(3)NAMEgetln2 - read one line of dataSYNTAX#include <getln.h> int getln2(&ss,&sa,&cont,&clen,sep); substdio ss; stralloc sa; char *cont; unsigned int clen; int sep;DESCRIPTIONgetln2 reads a line of characters, terminated by a sep character, from ss. The line is returned in two pieces. The first piece is stored in sa. The second piece is cont, a pointer to clen characters inside the ss buffer. The second piece must be copied somewhere else before ss is used again. If getln2 sees end-of-input before it sees sep, it sets clen to 0 and does not set cont. It puts the partial line into sa. getln2 normally returns 0. If it runs out of memory, or encounters an error from ss, it returns -1, setting errno appropriately.SEE ALSOstralloc(3), substdio(3), getln(3) getln2(3)
Related Man Pages |
---|
shtool-table(1) - linux |
stralloc(3) - debian |
strtok(3) - osx |
strtok_r(3) - osx |
strtok(3) - freebsd |
Similar Topics in the Unix Linux Community |
---|
Introduction |
Detecting unused variables... |
Weird 'find' results |
How to copy a column of multiple files and paste into new excel file (next to column)? |
New UNIX and Linux History Sections |