43 const char *ptr = argv[1];
45 printf(
"%f \n", result);
49 double timestamp = 500.;
50 double node_utc = 400.;
52 const char *strPtr = &testString[0];
53 const char testOperators[10] = {
"+-*/&|><="};
57 for(
int i = 0;
i < 9;
i++) {
59 strcpy(testString,
"(\"timestamp\"");
60 testString[strlen(testString)] = testOperators[
i];
61 strcat(testString,
"\"node_utc\")");
63 printf(
"%f \n", result);
64 for(
int j = 0; j < 128; j++) {
71 printf(
"Too many arguments \n");
int32_t json_set_double_name(double value, char *token, cosmosstruc *cinfo)
Set name from double.
Definition: jsonlib.cpp:4234
int i
Definition: rw_test.cpp:37
double json_equation(const char *&ptr, cosmosstruc *cinfo)
Return the results of a JSON equation.
Definition: jsonlib.cpp:4294
cosmosstruc * cosmos_data
Definition: json_test.cpp:35