On Mon, Aug 30, 2010 at 9:22 PM, Wolfgang Richter <[email protected]> wrote:
> printf and its family of functions all support this, no need for a > NUL-terminator if you don't have one. > > Also, say you want to do strcmp(), just use strncmp() with max length > etc. > > Is there a compelling use-case to add this into 0MQ? No, it was just an idea to ease interop between C and other languages and avoid the frequent errors people will hit when trying to exchange strings. The other solution is documentation, i.e. very clearly explaining somewhere that C has a different string format from other languages and that strings sent from language A to C won't be usable as such (without specifying the length in every single function call, or copying). - Pieter Hintjens iMatix - www.imatix.com _______________________________________________ zeromq-dev mailing list [email protected] http://lists.zeromq.org/mailman/listinfo/zeromq-dev
