replaced <cstring> with the C <stddef.h>