minden/source/ptrmath.h
2026-10-24 00:22:31 +03:00

3 lines
95 B
C

static inline void *offset_ptr(const void *ptr, int offset) {
return ((char*)ptr) + offset;
}