casting memset's return value to void * is useless