Nilorea Library
C utilities for networking, threading, graphics
Loading...
Searching...
No Matches
ex_url.c File Reference
#include "nilorea/n_common.h"
#include "nilorea/n_log.h"
#include "nilorea/n_network.h"
#include "nilorea/n_str.h"
#include <stdio.h>
#include <string.h>
#include <zlib.h>
+ Include dependency graph for ex_url.c:

Go to the source code of this file.

Functions

static void expect_canon (const char *in, const char *want)
 
static void expect_resolve (const char *base, const char *ref, const char *want)
 
static N_STRgz_compress (const char *s, int window_bits)
 
int main (int argc, char **argv)
 
void process_args (int argc, char **argv)
 

Variables

static int failures = 0
 

Function Documentation

◆ expect_canon()

static void expect_canon ( const char *  in,
const char *  want 
)
static
Examples
ex_url.c.

Definition at line 99 of file ex_url.c.

References N_STR::data, failures, free_nstr, LOG_ERR, LOG_INFO, n_log, and n_url_canonicalize_string().

Referenced by main().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ expect_resolve()

static void expect_resolve ( const char *  base,
const char *  ref,
const char *  want 
)
static
Examples
ex_url.c.

Definition at line 110 of file ex_url.c.

References N_STR::data, failures, free_nstr, LOG_ERR, LOG_INFO, n_log, and n_url_resolve().

Referenced by main().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ gz_compress()

static N_STR * gz_compress ( const char *  s,
int  window_bits 
)
static
Examples
ex_url.c.

Definition at line 37 of file ex_url.c.

References char_to_nstr_ex().

Referenced by main().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ main()

◆ process_args()

void process_args ( int  argc,
char **  argv 
)

Definition at line 68 of file ex_url.c.

References LOG_DEBUG, LOG_ERR, LOG_INFO, LOG_NOTICE, LOG_NULL, and set_log_level().

+ Here is the call graph for this function:

Variable Documentation

◆ failures

int failures = 0
static

Definition at line 65 of file ex_url.c.