Can python take in a C array (from a file) and does some processing on it? For example, say I have a C header containing:
static char bin[] = {...}; // whole bunch of hex values
Can I write a python script to count how many bytes are there in the array? The reason I want to do this is I have about ~100 of these headers and some of them have the same array names, so I can't include all of these and sizeof each one.
Any suggestion on what should I look into? Doesn't have to be python but I feel like this is the right tool.
Thanks!