Difference between <string> and <string.h>?
-
<string.h>
contains old functions likestrcpy
,strlen
for C style null-terminated strings. -
<string>
primarily contains thestd::string
,std::wstring
and other classes.
string.h
is a C header not a C++ header, period!