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


Groups > comp.lang.c > #58641

Re: multiple header includes

From Lőrinczy Zsigmond <nospam@for.me>
Newsgroups comp.lang.c
Subject Re: multiple header includes
Date 2015-03-22 11:14 +0100
Organization Aioe.org NNTP Server
Message-ID <mem4lq$892$2@speranza.aioe.org> (permalink)
References <mem3vs$6io$1@speranza.aioe.org>

Show all headers | View raw


On 2015.03.22. 11:02, jeff wrote:
> although in most cases we see the good practises of Header Guards, is
> there a risk for some architectures, that code like this,
> #include<stdio.h>
> #include<stdio.h>
> (eg same header included twice), will invoke an Undefined Behavior?

Unlikely, but the world is full of broken programs (compilers included),
so I cannot *promise* anything.

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


Thread

multiple header includes jeff <nospam@nospam.com> - 2015-03-22 10:02 +0000
  Re: multiple header includes Lőrinczy Zsigmond <nospam@for.me> - 2015-03-22 11:14 +0100
  Re: multiple header includes Richard Heathfield <rjh@cpax.org.uk> - 2015-03-22 13:10 +0000
  Re: multiple header includes Malcolm McLean <malcolm.mclean5@btinternet.com> - 2015-03-22 08:12 -0700
  Re: multiple header includes Robbie Hatley <see.my.sig@for.my.address> - 2015-03-27 02:46 -0700
    Re: multiple header includes James Kuyper <jameskuyper@verizon.net> - 2015-03-27 09:32 -0400
      Re: multiple header includes Robbie Hatley <see.my.sig@for.my.address> - 2015-04-11 14:08 -0700
        Re: multiple header includes Keith Thompson <kst-u@mib.org> - 2015-04-11 19:49 -0700
    Re: multiple header includes Keith Thompson <kst-u@mib.org> - 2015-03-27 08:32 -0700
  Re: multiple header includes fir <profesor.fir@gmail.com> - 2015-04-12 11:35 -0700
    Re: multiple header includes fir <profesor.fir@gmail.com> - 2015-04-12 11:45 -0700
      Re: multiple header includes fir <profesor.fir@gmail.com> - 2015-04-12 11:58 -0700

csiph-web