libdht

A simple helper library for distributed hash tables.
git clone git://r-36.net/libdht
Log | Files | Refs | LICENSE

ind.h (383B)


      1 /*
      2  * Copy me if you can.
      3  * by 20h
      4  */
      5 
      6 #ifndef __IND_H__
      7 #define __IND_H__
      8 
      9 #define nelem(x) (sizeof(x) / sizeof((x)[0]))
     10 
     11 #include <stdarg.h>
     12 
     13 void die(char *fmt, ...);
     14 void edie(char *fmt, ...);
     15 void *reallocz(void *p, int l, int z);
     16 void *mallocz(int l, int z);
     17 void *memdup(void *p, int l);
     18 char *vsmprintf(char *fmt, va_list fmtargs);
     19 char *smprintf(char *fmt, ...);
     20 
     21 #endif
     22