utils.h File Reference

#include "race.h"
#include "int_types.h"
#include <sys/types.h>
#include <stdio.h>
#include <stdlib.h>

Go to the source code of this file.

Functions

ssize_t fread_dyn (char **destp, size_t *n, FILE *stream)
double get_time (void)
voidxcalloc (size_t nelems, size_t size)
voidxmalloc (size_t size)
voidxrealloc (void *ptr, size_t size)
int xstrcasecmp (const char *a, const char *b)
char * xstrcat2 (const char *s1, const char *s2)
char * xstrdup (const char *a)
 duplicates a string and returns a pointer to the new string
int xstrncasecmp (const char *a, const char *b, size_t len)


Function Documentation

ssize_t fread_dyn ( char **  destp,
size_t *  n,
FILE *  stream 
)

Definition at line 134 of file utils.c.

References CWARNING3, xmalloc(), and xrealloc().

double get_time ( void   ) 

Definition at line 105 of file sdltest.c.

void* xcalloc ( size_t  nelems,
size_t  size 
)

Definition at line 83 of file utils.c.

References CRITICAL2.

void* xmalloc ( size_t  size  ) 

Definition at line 69 of file utils.c.

References CRITICAL2.

void* xrealloc ( void ptr,
size_t  size 
)

Definition at line 120 of file utils.c.

References CRITICAL2.

int xstrcasecmp ( const char *  a,
const char *  b 
)

Definition at line 44 of file utils.c.

char* xstrcat2 ( const char *  s1,
const char *  s2 
)

Definition at line 109 of file utils.c.

References xmalloc().

char* xstrdup ( const char *  a  ) 

duplicates a string and returns a pointer to the new string

Definition at line 99 of file utils.c.

References xmalloc().

int xstrncasecmp ( const char *  a,
const char *  b,
size_t  len 
)

Definition at line 56 of file utils.c.


Generated on Fri Sep 28 00:35:47 2007 for raceintospace by  doxygen 1.5.3