#include "WorkingDialog.h"
char *SaCopyDbString(char *str);
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.