...
Make specific functions (avoid use of void*)
or
use offsetof from <stddef.h> to create an alignof function that will return the alignment
of anything that is not:
- An lvalue representing a bit field
- A function type
- An undefined structure or class
- An incomplete type (such as void)
| Code Block | ||
|---|---|---|
| ||
int *loop_ptr;
int * int_ptr;
int *loopFunction(int *v_pointer)
{ return v_pointer; }
int_ptr = loopFunction(loop_ptr);
|
...