[Home] [By Thread] [By Date] [Recent Entries]

  • From: Tei <oscar.vives@g...>
  • To: David Sheets <kosmo.zb@g...>
  • Date: Fri, 15 Nov 2013 18:36:14 +0100

On 15 November 2013 16:46, David Sheets <kosmo.zb@g...> wrote:
..
> If I decided to use null-terminated strings to transmit a binary blob,
> would it be a "C WTF"?
>

I think null-terminated strings where "good enough" at the time. For
usa-ascii users.

Where, I think the unicode standard allow characters to be padded from
the left with 0x00s so ...is not true anymore.  ..for unicode users.

For general data, like a GIF image.  Not even a C programmer would
transfer it in a null terminated string.  null terminated is for text.


*insert here comment how things that are good enough are not broken,
are good for one thing, but not for all things and that is okay*


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]


Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member