Article View: comp.std.c
Article #1231Re: <limits.h> and MB_LEN_MAX
From: Hendrik Boom
Date: Fri, 28 Aug 1992 16:14
Date: Fri, 28 Aug 1992 16:14
22 lines
1253 bytes
1253 bytes
glenn@ready.com (Glenn Kasten) writes: : <limits.h> is supposed to define MB_LEN_MAX. Is it permissible for a : conforming implementation to define MB_LEN_MAX in terms of another : type, where that other type is not declared in <limits.h>? In other : words, do header files have to be complete in themselves, or can they : require other header files to also be included, in order to be : usable? It doesn't matter whether the include files even exist, as long as the compiler understands #include <limits.h> to define the proper symbols, without any further effort being required of the programmer. So you cannot require him to include anything else. It is perfectly OK for the limits.h file (assuming the compiler doen't have it built in, and actually does read an actual file of C code), to contain its own #includes to include whatever it needs. hendrik
Technical Details
Message-ID:
<28625@vedge.UUCP>Path:
arc1-ca.pugleaf.net!sparky!uunet!utcsri!utgpu!attcan!sobeco!philmtl!vedge!hendrikReferences:
<1992Aug27.165044.4781@ready.eng.ready.com>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!utcsri!utgpu!attcan!sobeco!philmtl!vedge!hendrik From: hendrik@vedge.UUCP (Hendrik Boom) Newsgroups: comp.std.c Subject: Re: <limits.h> and MB_LEN_MAX Message-ID: <28625@vedge.UUCP> Date: 28 Aug 92 16:14:24 GMT References: <1992Aug27.165044.4781@ready.eng.ready.com> Organization: Visual Edge Software, St. Laurent, Quebec Lines: 21