ind.h - libdht - A simple helper library for distributed hash tables.
 (HTM) git clone git://r-36.net/libdht
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) 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