#include #include #include typedef struct kv_user_name { int id; char *name; char *desc; } kv_user_name; kv_user_name* kv_new(int id, char *name, char *desc) { } netbyte_store* kv_marsh(kv_user_name *kv) { return NULL; } void kv_free() { } int main() { int er; uint8_t *res; FILE *f; int i=0; netbyte_store nb; printf("Start test\n"); nb_init( &nb ); f = fopen("test_many.nb","r"); while (nb_fread( &nb, fileno(f) ) == 0) { printf("ITER %d: ", i ); pr_store( &nb ); i += 1; } fclose( f ); printf("End test\n"); return 0; }