If I have created a C module that presents a handle to the user with a pointer to a forward declared struct, like so:
typedef struct FOO_Obj *FOO_Handle;
If I then declare function prototypes that use it as a const
qualified parameter thusly:
void FOO_work(const FOO_Handle fooHandle);
How is the const
-ness applied?
const struct FOO_Obj *FOO_Handle // A
struct FOO_Obj *const FOO_Handle // B
const struct FOO_Obj *const FOO_Handle // C
Or is it UB?