memset from cstring