ceptr
 All Data Structures Files Functions Variables Typedefs Macros Modules Pages
util.c File Reference
#include "util.h"
#include <fcntl.h>
#include <unistd.h>
#include <errno.h>
#include <sys/stat.h>
#include <stdlib.h>
#include "ceptr_error.h"
Include dependency graph for util.c:

Go to the source code of this file.

Macros

#define MS_PER_NANO_SECOND   1000000L
 

Functions

void hexDump (char *desc, void *addr, int len)
 
int strcicmp (char const *a, char const *b)
 
void writeFile (char *fn, void *data, size_t size)
 
void * readFile (char *fn, size_t *size)
 
uint64_t diff_micro (struct timespec *start, struct timespec *end)
 
void sleepms (long milliseconds)
 
void bin_to_strhex (unsigned char *bin, unsigned int binsz, char **result)
 

Detailed Description

Definition in file util.c.