utils.h File Reference

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include <ctype.h>
#include <inttypes.h>
#include <stdint.h>
#include <pthread.h>
#include <sys/types.h>
#include <sys/time.h>
#include "comm.h"

Include dependency graph for utils.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define min(x, y)   ((x) < (y) ? (x) : (y))
#define max(x, y)   ((x) > (y) ? (x) : (y))

Functions

int urltokenize (char *, char **, char **, char **)
char * strstrcase (char *, const char *)
uint32_t random32 (int)
int thread_isvalid (pthread_t p)
void thread_invalidate (pthread_t *p)
int thread_getuid (pthread_t p)
int nms_timeval_subtract (struct timeval *, const struct timeval *, const struct timeval *)
int nms_timeval_add (struct timeval *, const struct timeval *, const struct timeval *)
void f2time (double, struct timeval *)


Detailed Description

Miscellaneus private utility functions Most of them should be inlined.

Definition in file utils.h.


Function Documentation

char* strstrcase ( char *  haystack,
const char *  needle 
)

Case insensitive strstr

Definition at line 29 of file strstrcase.c.

References strstrcase().

Referenced by strstrcase().

Here is the call graph for this function:


Generated on Tue Feb 3 03:10:02 2009 for libnemesi by  doxygen 1.5.4