Skip to content

blackball/vpack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vpack

vpack is a simple plain data (un)serilization lib.

struct model_t {
       int i;
       double x[10];
};

static const char *fmtstr = "id#";

struct model_t model = {0};

/* fulfill model */

/* save model into binary file */
vpack_save("model.db", fmtstr, &(model.i), model.x, 10);

/* load model.db into model */
vpack_load("model.db", fmtstr, &(model.i), model.x, 10);

The vpack.c file was documented with comments.

About

a simple plain data (un)serialization lib.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages