tpf@jdyx.UUCP (Tom Friedel) (05/30/89)
The following program produces differemt results with gcc and
the 2.0.1 386/ix C compiler
#define ctl(a) ('a'&037)
main()
{
printf( "%d\n" , (int) ctl(a) );
printf( "%d\n" , (int) ctl(b) );
printf( "%d\n" , (int) ctl(c) );
printf( "%d\n" , (int) ctl(d) );
}
cc
1
2
3
4
gcc
1
1
1
1
As the above #define construct is used ny the sc spread sheet, I
assume someone has already pointed this out.
Tom Friedel Public Access Unix BBS
tpf@prism.gatech.edu ...gatech!emory!jdyx!tpf
(404) 320-7624 (404) 321-5020