Logo Search packages:      
Sourcecode: fbi version File versions  Download package

misc.h

/*
 * misc useful #defines ...
 */

#define container_of(ptr, type, member) ({                  \
        const typeof( ((type *)0)->member ) *__mptr = (ptr);      \
        (type *)( (char *)__mptr - offsetof(type,member) );})

#define array_size(x) (sizeof(x)/sizeof(x[0]))

Generated by  Doxygen 1.6.0   Back to index