replace with memset
missing stdarg.h include