Re: Avoiding string break...



----- Original Message ----
Does exist any foreseen solution to avoid the classical string break
by the '\0' character ?

(I use Gio::receive&  Gio::send()...)

Glus

If you use a std::string the string should be able to contain '\0'.

For example:

Gio::IOStream io_stream;
Glib::RefPtr<Gio::Outputstream> out = io_stream->get_output_stream();
std::string str("ABC\0DEF");
out->send(str);

But I'm not sure about that...


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]