Neither data() nor c_str()/cc() affects the content and length of the string. However, c_str()/cc() may transparently make a copy of the string to ensure that it is null-terminated. data() will never do this, so the return value from data() may not be null-terminated. Eddie