MACSio  0.9
Multi-purpose, Application-Centric, Scalable I/O Proxy App
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
parse_flags.c File Reference
#include "config.h"
#include <stdio.h>
#include <string.h>
#include "json.h"
#include "parse_flags.h"

Go to the source code of this file.

Macros

#define NELEM(x)   (sizeof(x) / sizeof(&x[0]))
 

Functions

int parse_flags (int argc, char **argv)
 

Variables

struct {
const char * arg
 
int flag
 
format_args []
 

Macro Definition Documentation

#define NELEM (   x)    (sizeof(x) / sizeof(&x[0]))

Definition at line 25 of file parse_flags.c.

Function Documentation

int parse_flags ( int  argc,
char **  argv 
)

Definition at line 28 of file parse_flags.c.

Variable Documentation

struct { ... } format_args[]
Initial value:
= {
{ "plain", JSON_C_TO_STRING_PLAIN },
{ "spaced", JSON_C_TO_STRING_SPACED },
{ "pretty", JSON_C_TO_STRING_PRETTY },
}
#define JSON_C_TO_STRING_PRETTY
Definition: json_object.h:55
#define JSON_C_TO_STRING_SPACED
Definition: json_object.h:46
#define JSON_C_TO_STRING_PLAIN
Definition: json_object.h:40