![]() |
Nilorea Library
C utilities for networking, threading, graphics
|
#include "nilorea/n_common.h"#include "nilorea/n_hex.h"#include "nilorea/n_log.h"#include "nilorea/n_str.h"#include <stdio.h>#include <string.h>
Include dependency graph for ex_hex.c:Go to the source code of this file.
Functions | |
| static void | expect_encode (const unsigned char *data, size_t len, const char *want) |
| int | main (int argc, char **argv) |
| void | process_args (int argc, char **argv) |
| static void | test_decode_errors (void) |
| static void | test_decode_roundtrip (void) |
| static void | test_encode (void) |
Variables | |
| static int | failures = 0 |
|
static |
Definition at line 69 of file ex_hex.c.
References N_STR::data, failures, free_nstr, LOG_ERR, n_hex_encode(), n_log, and N_STR::written.
Referenced by test_encode().
Here is the call graph for this function:
Here is the caller graph for this function:| int main | ( | int | argc, |
| char ** | argv | ||
| ) |
Definition at line 165 of file ex_hex.c.
References failures, LOG_ERR, LOG_NOTICE, n_log, process_args(), set_log_level(), test_decode_errors(), test_decode_roundtrip(), and test_encode().
Here is the call graph for this function:| void process_args | ( | int | argc, |
| char ** | argv | ||
| ) |
Definition at line 38 of file ex_hex.c.
References LOG_DEBUG, LOG_ERR, LOG_INFO, LOG_NOTICE, LOG_NULL, and set_log_level().
Here is the call graph for this function:
|
static |
|
static |
Definition at line 96 of file ex_hex.c.
References N_STR::data, failures, Free, free_nstr, LOG_ERR, n_hex_decode(), n_hex_encode(), and n_log.
Referenced by main().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 83 of file ex_hex.c.
References expect_encode().
Referenced by main().
Here is the call graph for this function:
Here is the caller graph for this function: