ArrayFromFile(3) — UNIX Programmer’s Manual
NAME
simple string array functions
SYNOPSIS
#include <text/text.h>
DESCRIPTION
These functions operate on simple string arrays. They are part of the text library, libtext. The link editor searches this library under the "-ltext" option. Declarations for these functions may be obtained from the master include file <text/text.h>.
SUMMARY
char ∗∗ ArrayFromFile (char ∗file);
Reads file, and returns a null terminated array of allocated strings containing the lines of the file, or zero in the event of an error.
char ∗∗ ArrayFromString (char ∗s);
s is an array containing one or more strings separated by white space or colons. Returns a null terminated array of strings containing the components of s.
void FreeStringArray (char ∗∗a);
Releases the storage associated with a, an array of strings as returned by ArrayFromFile() or ArrayFromString().
SEE ALSO
NeXT, Inc. — July 7, 1989