comp.lang.ada
 help / color / mirror / Atom feed
From: emery@goldfinger.mitre.org (David Emery)
Subject: Re: C-Ada Import of struct's -- Help
Date: 19 Oct 94 10:02:08
Date: 1994-10-19T10:02:08+00:00	[thread overview]
Message-ID: <EMERY.94Oct19100208@goldfinger.mitre.org> (raw)
In-Reply-To: dewar@cs.nyu.edu's message of 18 Oct 1994 15:11:19 -0400

>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
-------------------------------------------------------------------------



  reply	other threads:[~1994-10-19 10:02 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1994-10-18 10:20 C-Ada Import of struct's -- Help Bob Wells #402
1994-10-18  9:58 ` David Emery
1994-10-18 19:11   ` Robert Dewar
1994-10-19 10:02     ` David Emery [this message]
1994-10-20  0:36     ` Keith Thompson @pulsar
  -- strict thread matches above, loose matches on Subject: below --
1994-10-19 13:57 Bob Wells #402
1994-10-18  3:34 mcnett michael david
1994-10-18  9:48 ` David Emery
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox