Pattern: Arithmetic operation on void pointer
Issue: -
When using void pointers in calculations, the behaviour is undefined. Arithmetic operations on void *
is a GNU C extension, which defines the sizeof(void)
to be 1.
Pattern: Arithmetic operation on void pointer
Issue: -
When using void pointers in calculations, the behaviour is undefined. Arithmetic operations on void *
is a GNU C extension, which defines the sizeof(void)
to be 1.