Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
C Programming
Null terminated strings: bad or good?
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="Tony, post: 3716096"] "It's safe (in a manner of speaking). The subtopic is the maximum length of a string." I don't see that as an issue. Everything doesn't have to be scalable to the largest integer size on a machine. Strings to me are of "reasonable" length. For instance. If there is a period marking the end of a sentence, then that is probably one string. A whole file of sentences and paragraphs, is not a string. 32 bits for a length field is just because it's easy to use on a 32-bit platform. If someone needs a billion byte string, well I'm not even going to try to conceive of that because it sounds silly. Tony [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
C Programming
Null terminated strings: bad or good?
Top