String — C Library Procedures
NAME
String_SaveArray, String_FreeArray − copy and destroy null-terminated string array
SYNOPSIS
#include <spriteString.h>
char ∗∗
String_SaveArray(stringsPtr)
char ∗∗
String_FreeArray(stringsPtr)
ARGUMENTS
char ∗∗stringsPtr (in) Pointer to a null-terminated array of string pointers.
DESCRIPTION
These routines create and destroy null-terminated arrays of strings. They are useful for making copies of the argv argument array or of a host alias list. String_SaveArray creates new copies of the strings and of the array of pointers. String_FreeArray frees the strings and the array. It returns a nil pointer that can be used to nil out the given stringsPtr.
KEYWORDS
string, copy
Sprite version 1.0 — April 23, 1991