Also do some minor tweaking of const.
Some additional comments regarding the excit.h header file that may require additional work:
Is that an established term? If not, can we replace it with a less... loaded... one?
- "const excit_t"
Since excit_t is a pointer type, the const will apply to the pointer, not to the contents behind it. I don't think there's really any way to solve it, short of typedef'ing a separate const_excit_t type, something like (not tested):
typedef const struct excit_s *const_excit_t;
- "next functionality"
The comment is hard to parse; maybe replace "next" with something less generic (just in the comment; it's fine as the field name)? I chose "succession" but maybe "advancement" or "incrementation" would be better? Maybe also use more descriptive terms in the comments for "nth" and "pos"?