Do all the things like ++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatarSign Up
Without fixed size integers?
But that would mean the hash could be of arbitrary length. Wouldn't that go against the idea of hashing algorithms?
Fast-Nop2802421dSounds like an X/Y problem, i.e. a question rooted in a wrong approach to the problem.
Fast-Nop2802421d@metamourge So it is an X/Y problem.
The fixed integer sizes are guaranteed by the standard from C99 onwards. There's absolutely no reason to not use them because you'd be hard pressed to find a C compiler without C99 datatype support.
And even if you should encounter one, you can add that header file yourself for the platform and compiler you're using because all these types actually do is encaptulating the varying int sizes via typedefs.