TIP: Click on subject to list as thread! ANSI
echo: c_echo
to: Bill Birrell
from: Pascal Schmidt
date: 2004-01-19 17:12:36
subject: [C] (Thanks)An interesting question

Hi Bill! :-)

 BB>     By that very definition it is a term used in C. I said nothing 
 BB> about a macro. I said only that maxint was defined. It does appear in 
 BB> italics on the left hand side, doesn't it? Read what you yourself 
 BB> wrote: "other terms are defined ....".
Now let's try compiling a C program with minint in it:

#include 

int foo = maxint;

gcc -g -O2 -Wall -W   -c -o minint.o minint.c
minint.c:3: `minint' undeclared here (not in a function)

No such problem occurs for INT_MAX.

It would also be against the naming conventions used in the C standard to
define a constant with a name in lower case.

Ciao
Pascal

--- Msged/LNX 6.1.1
* Origin: rot13: tr '[A-Za-z]' '[N-ZA-Mn-za-m]' (1:153/401.2)
SEEN-BY: 633/267 270
@PATH: 153/401 307 140/1 106/2000 633/267

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.