Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!iuvax!watmath!datanguay From: datanguay@watmath.waterloo.edu (David Adrien Tanguay) Newsgroups: comp.lang.c Subject: Re: Including Message-ID: <29114@watmath.waterloo.edu> Date: 13 Sep 89 06:10:07 GMT References: <71@motto.UUCP> Reply-To: datanguay@watmath.waterloo.edu (David Adrien Tanguay) Organization: U. of Waterloo, Ontario Lines: 16 In article <71@motto.UUCP> dave@motto.UUCP (dave brown) writes: >I am writing a header file to be used by other programmers. Within >this file, one of the structures needs the type size_t. This means >that in order to compile properly, , which defines size_t, >must be included as well. Since my header file will be used in >programs I didn't write, I need to figure out how to make sure > is included at the same time. See section 4.1.2: the implementation must make the standard headers idempotent (with the exception of assert.h, which relies on NDEBUG). You can put in your header file, and there should be no problems if the user of your header file also includes . "...; each may be included more than once in a given scope, with no effect different from being included only once, ..." David Tanguay