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

Go to the source code of this file.

Functions

static void expect_true (const char *what, int ok)
 report a check
int main (void)
static int there (const char *path)
 does a file exist

Variables

static int failures = 0
 record one check

Function Documentation

◆ expect_true()

void expect_true ( const char * what,
int ok )
static

report a check

Definition at line 28 of file ex_file_copy.c.

References failures, LOG_ERR, and n_log.

◆ main()

int main ( void )

Definition at line 44 of file ex_file_copy.c.

References expect_true(), failures, LOG_NOTICE, n_file_copy_verified(), n_file_same_content(), n_log, set_log_level(), and there().

Here is the call graph for this function:

◆ there()

int there ( const char * path)
static

does a file exist

Examples
ex_file_copy.c.

Definition at line 36 of file ex_file_copy.c.

Referenced by main().

Here is the caller graph for this function:

Variable Documentation

◆ failures

int failures = 0
static

record one check

Definition at line 25 of file ex_file_copy.c.