delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1999/10/13/00:17:47

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT sourceware DOT cygnus DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT sourceware DOT cygnus DOT com>
List-Archive: <http://sourceware.cygnus.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sourceware DOT cygnus DOT com>
List-Help: <mailto:cygwin-help AT sourceware DOT cygnus DOT com>, <http://sourceware.cygnus.com/ml/#faqs>
Sender: cygwin-owner AT sourceware DOT cygnus DOT com
Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com
Message-Id: <199910130416.VAA03598@aleph.ssd.hal.com>
Subject: Re: Re[2]: HELP!!!!
To: cygwin AT sourceware DOT cygnus DOT com
Date: Tue, 12 Oct 1999 21:16:59 -0700 (PDT)
Cc: 666FallenAngel AT gmx DOT net
In-Reply-To: <19991012141004.26500.rocketmail@web116.yahoomail.com> from "Earnie Boyd" at Oct 12, 99 07:10:04 am
From: "J. J. Farrell" <jjf AT bcs DOT org DOT uk>
X-Mailer: ELM [version 2.4 PL23]

> From: Earnie Boyd <earnie_boyd AT yahoo DOT com>
> 
> --- FallenAngel <666FallenAngel AT gmx DOT net> wrote:
> > 
> > EB> Also, try removing the spaces within the angle brackets. I.E.
> > EB> write it as #include <stdio.h> instead of #include < stdio.h >.
> > 
> > thanks! that worked! -but why?
> > i'm using a c/c++ tutorial and there it's " < stdio.h >
> 
> I've never seen it with spaces.  Most of us are lazy and avoid unneeded
> characters.  I don't know what the ANSI specifications are to know if
> this is a bug or not.

All the characters between the angle brackets form the name of the
header, so <stdio.h> asks for a different header than < stdio.h >.
The mapping from this name to an actual file or built-in representation
is implementation defined, so an implementation is free to interpret
the second version by stripping leading and trailing spaces, and
end up with the same header as the first version, if it so chooses.
The names of the Standard headers do not include leading or trailing
spaces, so the correct form to use is <stdio.h>.

FallenAngel should get a better tutorial.

> I've copied the list on this for the benefit of archiving.

Ditto - this is off-topic, but I thought it worth an explanation to
complete the story. If anyone wants to discuss this further, please
do so in an appropriate forum or by private email.

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019