C
Christopher
Why do so many C APIs buffer bytes using a char * param instead of an
unsigned char * param?
I am finding an aweful lot of people have mistaken the param to mean
"pass me a string" when the real intent was "pass me raw bytes"
The signed-ed-ness really doesn't matter I suppose as there is some
kind of transformation on the way in and on the way out (if the author
had a clue what they were doing), but I do wonder why signed was
chosen rather than unsigned, so often?
unsigned char * param?
I am finding an aweful lot of people have mistaken the param to mean
"pass me a string" when the real intent was "pass me raw bytes"
The signed-ed-ness really doesn't matter I suppose as there is some
kind of transformation on the way in and on the way out (if the author
had a clue what they were doing), but I do wonder why signed was
chosen rather than unsigned, so often?