MCPcopy Create free account
hub / github.com/OpenDriveLab/OpenLane / print_double

Function print_double

eval/LANE_evaluation/lane2d/src/cJSON.c:184–194  ·  view source on GitHub ↗

Render the number nicely from the given item into a string. */

Source from the content-addressed store, hash-verified

182
183/* Render the number nicely from the given item into a string. */
184static char *print_double(cJSON *item)
185{
186 char *str;
187 double d = item->valuedouble;
188 str = (char*) cJSON_malloc(64); /* This is a nice tradeoff. */
189 if (str)
190 {
191 sprintf(str, "%.15f", d);
192 }
193 return str;
194}
195
196static char *print_int(cJSON *item)
197{

Callers 1

print_valueFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected