2011/6/1 Sebastien Lelong <[email protected]>:
> But being devil's advocate, I could use strings containing NULL char, but
> this doesn't mean end of string.

What would be the meaning of NULL within a 'string of characters'? In
other words: would you consider this still to be a string?
I think this would be data-records with field-separators and/or
non-ascii content.

There are some options to deal with this:
- make the check for a null-char optional (you can use it with NULL,
but loose the support of strings that are shorter than the array size)
- make the termination-value configurable (this is not a fix, it is
moving the issue)
- use an escape sequence to deal with all 256 possible values while
having a termination char too (works great, but has quite some impact
on all supplying routines).
- use a length variable - either separate or on the first location of
the string. (again, works great but has impact on all supplying
routines).

Take your pick ;)

Joep

-- 
You received this message because you are subscribed to the Google Groups 
"jallib" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/jallib?hl=en.

Reply via email to