COMP: missing string.h header for strlen.

This commit is contained in:
Mathieu Malaterre 2009-03-30 08:27:44 -04:00
parent 31d03e8399
commit 3a34b35dec
1 changed files with 3 additions and 1 deletions

View File

@ -12,6 +12,8 @@
# include "kwsys_ios_iostream.h.in"
#endif
#include <string.h> /* strlen */
int testIOS(int, char*[])
{
kwsys_ios::ostringstream ostr;
@ -24,7 +26,7 @@ int testIOS(int, char*[])
}
const char world[] = "world";
kwsys_ios::ostringstream ostr2;
ostr2.write( hello, strlen(hello) );
ostr2.write( hello, strlen(hello) ); /* I could do sizeof */
ostr2.put( '\0' );
ostr2.write( world, strlen(world) );
if(ostr2.str().size() != strlen(hello) + 1 + strlen(world) )