User: Password:
Subscribe / Log in / New account

Null-Terminated Strings

Null-Terminated Strings

Posted Nov 25, 2010 13:10 UTC (Thu) by renox (subscriber, #23785)
In reply to: Null-Terminated Strings by Cyberax
Parent article: Ghosts of Unix past, part 3: Unfixable designs

I agree with him that Pascal's strings are inflexible: think about two computer communicating together one with a 32-bit CPU, one with a 64-bit CPU, if you use a word as a length, you have an issue with Pascal's strings,
but C-strings don't care..

(Log in to post comments)

Null-Terminated Strings

Posted Nov 25, 2010 16:22 UTC (Thu) by vonbrand (guest, #4458) [Link]

No, you haven't... (Original) Pascal "strings" were just (packed) arrays of characters of a fixed length.

/me ducks and runs for cover

Copyright © 2017, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds