OFINDLINE(3)
๐ฆ OFINDLINE(3) โ Schilyยดs LIBRARY FUNCTIONS ๐ฆ
okay bestie, this is the ofindline() page from Schilyยดs LIBRARY FUNCTIONS, manual name OFINDLINE(3). itโs giving old-school Unix, and we are keeping every single detail. periodt. ๐
๐ธ NAME ๐ธ
ofindline()โ finds a line with a matching field โจ
โจ SYNOPSIS โจ
hereโs the signature, copied exactly, no edits bestie:
int ofindline(f,delim,string,field,array,arraysize)
FILE *f;
char delim;
char *string;
int field;
char *array[];
int arraysize;
๐ DESCRIPTION ๐
okay so ofindline() retrieves a line from an open file that has a matching character string in the given field. thatโs the whole mission. ๐ฏ
the way that ofindline() fills in array with pointers to strings that make up each field on the line? iconic. the strings are allocated new storage โ fresh memory, bestie, not reusing somebody elseโs vibe. โจ
the field delimiter, delim, is used to break up each line of the file into fields. string is the string to match. fieldno is the field number to match. fields are numbered 0..n. array is an array of pointers to fill in. arraysize is the size of array. iykyk ๐ซถ
๐ RETURNS ๐
+1โ match. slay. โ-1โ no match. ๐-2โ arg error. returned only if the conditionfindline_arg_erris handled and the handler returns. ๐-4โ not enough memory to allocate space for files. returned only if the conditionfindline_storageis handled and the handler returns. ๐ญ
okay thatโs the page, bestie. source/version: Schilyยดs LIBRARY FUNCTIONS, manual page OFINDLINE(3), author Joerg Schilling, date 2022/09/09. mwah ๐โจ
๐ฆ where this page comes from
- opensuse-leap 16.0: libschily-devel-doc 2022.10.16-160000.2.2 ยท CDDL-1.0
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms