added "cstring" functions