Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.c > #22958

Re: Learning C by reading

From James Kuyper <jameskuyper@verizon.net>
Newsgroups comp.lang.c
Subject Re: Learning C by reading
Date 2012-06-28 20:21 -0400
Organization A noiseless patient Spider
Message-ID <4FECF508.7070207@verizon.net> (permalink)
References <87bok3u4lj.fsf@gmail.com> <jshdet$s4u$1@dont-email.me> <Va6Hr.395935$ME5.247721@fx22.am4>

Show all headers | View raw


On 06/28/2012 07:56 PM, Andrew Cooper wrote:
> On 28/06/2012 11:59, James Kuyper wrote:
>>
>> // You cannot use leading underscores like this:
>> #ifdef _MYHEADER_H
>> #define _MYHEADER_H
>> // body of myheader.h
>> #endif
>>
> 
> 
> Incorrect.  You shouldn't, but you most definitely can.  As is the way
> with a large amount of C.

OK - "You cannot ... with defined behavior."

> Also, that should be an #ifndef, else you will never include the body of
> myheader.h unless you explicitly define _MYHEADER_H somewhere else.

I need a vacation. What I'm getting in about a month is 6000km road
trip. I'm not sure that qualifies. :-}

Back to comp.lang.c | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Learning C by reading Sergi Pasoev <s.pasoev@gmail.com> - 2012-06-28 14:13 +0400
  Re: Learning C by reading James Kuyper <jameskuyper@verizon.net> - 2012-06-28 06:59 -0400
    Re: Learning C by reading Andrew Cooper <amc96@cam.ac.uk> - 2012-06-29 00:56 +0100
      Re: Learning C by reading James Kuyper <jameskuyper@verizon.net> - 2012-06-28 20:21 -0400
  Re: Learning C by reading Johann Klammer <klammerj@NOSPAM.a1.net> - 2012-06-28 18:08 +0200
  Re: Learning C by reading Aaron W. Hsu <arcfide@sacrideo.us> - 2012-06-28 15:00 -0500
  Re: Learning C by reading Rui Maciel <rui.maciel@gmail.com> - 2012-06-29 02:48 +0100
  Re: Learning C by reading rouben@shady.(none) (Rouben Rostamian) - 2012-06-29 08:55 +0000
  Re: Learning C by reading Phil Carmody <thefatphil_demunged@yahoo.co.uk> - 2012-07-06 01:15 +0300

csiph-web