[Top] [Prev] [Next] [Bottom]
[Contents]
SaCopyDbString
Duplicates and string for use with SQL statements.
#include "WorkingDialog.h"
char *SaCopyDbString(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 or an empty string ("\0"), SaCopyDbString returns "null". The return value is malloc'd data and must be free'd with the free
function.
SaCopyDbString
returns a duplicate of the string passed to it in the str argument. SaCopyDbString
handles the NULL in empty string conditions by allocating a string of length 5 and setting it equal to "null" with a terminator (`\0'). SaCopyDbString
is useful when processing values to be used in ad hoc SQL statements.
[Top] [Prev] [Next] [Bottom]
[Contents]
info@bluestone.com
Copyright © 1997, Bluestone. All rights
reserved.