In theory it seems that books sugest declaring ADT in C as:
struct some_structure;
typedef some_structure *some_structure_t;
while most code uses:
struct some_structure;
typedef some_structure some_structure_t;
I know that const is not working with the first style. Is this the only reason for real libraries not to use first approach? Any further notices or suggestions?
you mean abstract data type? If I abstract 😉 from the syntax errors in your code snipsets, I think, yes
typedefof pointer types is frowned upon because problems withconstandvolatile.BTW, another problem with your code are the names you have chosen.
_tas an ending is reserved for future use in POSIX.