Nilorea Library
C utilities for networking, threading, graphics
Loading...
Searching...
No Matches
ex_json.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include "nilorea/n_json.h"
#include "nilorea/n_log.h"
Include dependency graph for ex_json.c:

Go to the source code of this file.

Functions

static void expect_true (const char *label, int cond)
int main (int argc, char **argv)
static int process_args (int argc, char **argv)

Variables

static int failures = 0
static int log_level = 3

Function Documentation

◆ expect_true()

void expect_true ( const char * label,
int cond )
static

Definition at line 63 of file ex_json.c.

References failures, LOG_ERR, and n_log.

◆ main()

◆ process_args()

int process_args ( int argc,
char ** argv )
static

Definition at line 38 of file ex_json.c.

References LOG_DEBUG, LOG_ERR, LOG_INFO, log_level, LOG_NOTICE, and LOG_NULL.

Variable Documentation

◆ failures

int failures = 0
static

Definition at line 36 of file ex_json.c.

◆ log_level

int log_level = 3
static

Definition at line 35 of file ex_json.c.