public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* RE: Silly C question
@ 2003-09-15 23:34 lrtaylor
  0 siblings, 0 replies; 3+ messages in thread
From: lrtaylor @ 2003-09-15 23:34 UTC (permalink / raw)
  To: millerj, gcc-help

Yes.

Thanks,
Lyle Taylor


-----Original Message-----
From: Justin Miller [mailto:millerj@wam.umd.edu]
Sent: Monday, September 15, 2003 5:34 PM
To: gcc-help@gcc.gnu.org
Subject: Silly C question

It's been a while since I've really played with C...

If I write something simple like:

char str[] = "howdy";

Does C automatically NULL-terminate that?

Justin

^ permalink raw reply	[flat|nested] 3+ messages in thread

* RE: Silly C question
  2003-09-15 23:33 Justin Miller
@ 2003-09-16  0:50 ` Allen Williams
  0 siblings, 0 replies; 3+ messages in thread
From: Allen Williams @ 2003-09-16  0:50 UTC (permalink / raw)
  To: Justin Miller, gcc-help

Yes.

> -----Original Message-----
> From: gcc-help-owner@gcc.gnu.org [mailto:gcc-help-owner@gcc.gnu.org]On
> Behalf Of Justin Miller
> Sent: Monday, September 15, 2003 7:34 PM
> To: gcc-help@gcc.gnu.org
> Subject: Silly C question
> 
> 
> It's been a while since I've really played with C...
> 
> If I write something simple like:
> 
> char str[] = "howdy";
> 
> Does C automatically NULL-terminate that?
> 
> Justin

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Silly C question
@ 2003-09-15 23:33 Justin Miller
  2003-09-16  0:50 ` Allen Williams
  0 siblings, 1 reply; 3+ messages in thread
From: Justin Miller @ 2003-09-15 23:33 UTC (permalink / raw)
  To: gcc-help

It's been a while since I've really played with C...

If I write something simple like:

char str[] = "howdy";

Does C automatically NULL-terminate that?

Justin

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2003-09-16  0:50 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-09-15 23:34 Silly C question lrtaylor
  -- strict thread matches above, loose matches on Subject: below --
2003-09-15 23:33 Justin Miller
2003-09-16  0:50 ` Allen Williams

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).