Skip to content

staruwos/structviz

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

structviz

A C Struct Alignment Visualizer

Live Demo

Live Demo at: https://staruwos.github.io/structviz/

Examples

struct Example {
    char a;
    long b;
    char c;
    void *d;
};
struct ExampleB {
    uint_fast16_t fast_val;
    size_t length;
    int (*callback)(void *, int);
    char status;
    ptrdiff_t memory_offset;
    int (*callback_array[3])();
};
struct ExampleC {
    char a, b;
    struct Inner {
        int x;
        double y;
    } nested_item;
    int *ptr1, ptr2; 
    long array[2], single;
};

About

Visualize C struct memory layouts, padding, and offsets – interactive web tool.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors