mirror of
https://github.com/estkme-group/lpac
synced 2025-06-29 00:02:57 +02:00
13 lines
313 B
C
13 lines
313 B
C
#include "cJSON_ex.h"
|
|
|
|
CJSON_PUBLIC(cJSON *) cJSON_AddStringOrNullToObject(cJSON *const object, const char *const name, const char *const string)
|
|
{
|
|
if (string)
|
|
{
|
|
return cJSON_AddStringToObject(object, name, string);
|
|
}
|
|
else
|
|
{
|
|
return cJSON_AddNullToObject(object, name);
|
|
}
|
|
}
|