// fprint().
// General includes.
-#include "cl_sysdep.h"
+#include "base/cl_sysdep.h"
// Specification.
-#include "cl_string.h"
+#include "cln/string.h"
// Implementation.
-#include "cl_io.h"
+#include "cln/io.h"
-void fprint (cl_ostream stream, const cl_string& str)
+namespace cln {
+
+void fprint (std::ostream& stream, const cl_string& str)
{
-#if defined(CL_IO_STDIO)
- var const char * ptr = str.asciz();
- var unsigned long i = str.length();
- while (i > 0) {
- fprintchar(stream,*ptr);
- ptr++; i--;
- }
-#endif
-#if defined(CL_IO_IOSTREAM)
- stream.write(str.asciz(),str.length());
-#endif
+ stream.write(str.asciz(),str.size());
}
+
+} // namespace cln