S
Steffen Fiksdal
I have a function that base64 decodes some data. The incoming data is
received as "const char*" (BASE64 characters are always safe ASCII
characters, meaning they will always fit in a signed char positive range).
The resulting decoded data is placed in memory, and the function exposes
an "unsigned char*" to the caller.
What does ANSI C say (if anything) about what kind of pointer is the
correct one to use for passing/returning/processing binary data locations ?
Best regards
Steffen
received as "const char*" (BASE64 characters are always safe ASCII
characters, meaning they will always fit in a signed char positive range).
The resulting decoded data is placed in memory, and the function exposes
an "unsigned char*" to the caller.
What does ANSI C say (if anything) about what kind of pointer is the
correct one to use for passing/returning/processing binary data locations ?
Best regards
Steffen