1 #include "../csm/csm_all.h" 4 int main(
int argc,
const char * argv[]) {
12 sm_info(
"%s : reads a JSON stream and copies it multiplied by n." 13 "\n\nOptions:\n", (
char*)argv[0]);
22 if(feof(stdin))
break;
28 int i;
for(i=0;i<n;i++) {
void sm_set_program_name(const char *name)
struct option * options_allocate(int n)
const char * json_object_to_json_string(struct json_object *this)
void options_int(struct option *, const char *name, int *p, int def_value, const char *desc)
void options_print_help(struct option *options, FILE *f)
int main(int argc, const char *argv[])
void sm_info(const char *msg,...)
JO json_read_stream(FILE *f)
void sm_error(const char *msg,...)
int options_parse_args(struct option *ops, int argc, const char *argv[])