passing a pointer of different type to a function (C)

Suppose that a function from a generic library would like to use long ints (say 64 bit) for any case, but in my program I would like to use short ones (say 32 bit). Then I encounter a situation as follows: void f(long unsigned int *a) { *a = 10; } void main(void) { unsigned… Read More passing a pointer of different type to a function (C)