If you mean something like this:
int bitset_add(struct bitset *this, unsigned char *buffer);
Then yeah, I can imagine that buffer would be a string of 0s and 1s, or maybe a numeric string whose...
Type: Posts; User: laserlight
If you mean something like this:
int bitset_add(struct bitset *this, unsigned char *buffer);
Then yeah, I can imagine that buffer would be a string of 0s and 1s, or maybe a numeric string whose...
At a glance, this is wrong:
p == malloc(sizeof(*p));
It should be:
p = malloc(sizeof(*p));
By the way, bitset_add's description is strange: add an item to the set?