We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ca0abe5 commit b7442abCopy full SHA for b7442ab
src/string_lib.c
@@ -309,3 +309,15 @@ long StringToLong(const char *str)
309
310
return result;
311
}
312
+
313
+/*********************************************************************/
314
315
+char *NULLStringToEmpty(char *str)
316
+{
317
+ if(!str)
318
+ {
319
+ return "";
320
+ }
321
322
+ return str;
323
+}
src/string_lib.h
@@ -33,6 +33,7 @@ char *ToLowerStr(const char *str);
33
void ToLowerStrInplace(char *str);
34
35
long StringToLong(const char *str);
36
+char *NULLStringToEmpty(char *str);
37
38
bool IsNumber(const char *name);
39
0 commit comments