ucx/ucx.h

Wed, 10 Oct 2012 09:32:06 +0200

author
Mike Becker <universe@uap-core.de>
date
Wed, 10 Oct 2012 09:32:06 +0200
changeset 58
733f22fca61a
parent 42
ff3dd1ee7dee
child 65
7b2f2cab6348
permissions
-rw-r--r--

discarded memprintf / memscanf

Reason: memscanf has no chance to get the amount of bytes read

     1 /* 
     2  * File:   ucx.h
     3  * Author: olaf
     4  *
     5  * Created on 31. Dezember 2011, 17:17
     6  */
     8 #ifndef UCX_H
     9 #define	UCX_H
    11 #include <stdlib.h>
    13 #ifdef	__cplusplus
    14 extern "C" {
    15 #endif
    17 #define UCX_FOREACH(type,list,elem) \
    18         for (type elem = list ; elem != NULL ; elem = elem->next)
    20 /* element1,element2,custom data -> {-1,0,1} */
    21 typedef int(*cmp_func)(void*,void*,void*);
    23 /* element,custom data -> copy of element */
    24 typedef void*(*copy_func)(void*,void*);
    26 #ifdef	__cplusplus
    27 }
    28 #endif
    30 #endif	/* UCX_H */

mercurial