added some cstring.h functions