From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-0.8 required=5.0 tests=BAYES_00,INVALID_DATE autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,6ec0e822a8924768 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 1994-10-19 08:18:16 PST Path: bga.com!news.sprintlink.net!howland.reston.ans.net!swiss.ans.net!solaris.cc.vt.edu!news.duke.edu!eff!blanket.mitre.org!linus.mitre.org!linus!mbunix!emery From: emery@goldfinger.mitre.org (David Emery) Newsgroups: comp.lang.ada Subject: Re: C-Ada Import of struct's -- Help Date: 19 Oct 94 10:02:08 Organization: The Mitre Corp., Bedford, MA. Message-ID: References: <9410181020.AA08716@eurocontrol.de> <3816kn$n4e@schonberg.cs.nyu.edu> NNTP-Posting-Host: goldfinger.mitre.org In-reply-to: dewar@cs.nyu.edu's message of 18 Oct 1994 15:11:19 -0400 Date: 1994-10-19T10:02:08+00:00 List-Id: >be careful not to confuse here, there is no such requirement in C. >Certain C library routines (but by no means all) require strings to >be null terminated, and string constants are null terminated, but there >is no general requirement in C that corresponds to this quote. True in theory, but in practice my experience is that "all strings" in C need to be null-terminated. A LOT of library routines and user code will break if this is not followed, and 'lack of termination' is clearly the exception, rather than the rule, in C practice. dave -- --The preceeding opinions do not necessarily reflect the opinions of --The MITRE Corporation or its sponsors. -- "A good plan violently executed -NOW- is better than a perfect plan -- next week" George Patton -- "Any damn fool can write a plan. It's the execution that gets you -- all screwed up" James Hollingsworth -------------------------------------------------------------------------