[Top] [Prev] [Next] [Bottom]
[Contents]
SaCopyString
Duplicates a string and handles NULL conditions.
#include "WorkingDialog.h"
char *SaCopyString(char *str);
Arguments
- str
- Pointer to a string or NULL.
Return Values
Returns a pointer to an exact duplicate of the str
argument. If str
is NULL, SaCopyString
returns an empty string ("\0"). The return value is malloc'd data and must be free'd with the free function.
SaCopyString returns a duplicate of the string passed to it in the str
argument.
SaCopyString handles the NULL condition by allocating a string of length 1 and setting it equal to "\0".
[Top] [Prev] [Next] [Bottom]
[Contents]
info@bluestone.com
Copyright © 1997, Bluestone. All rights
reserved.