Path: utzoo!attcan!uunet!husc6!cmcl2!nrl-cmf!mailrus!cwjcc!gatech!psuvax1!psuvm.bitnet!rice.bitnet!storkel From: STORKEL@RICE.BITNET (Scott Storkel) Newsgroups: comp.lang.c++ Subject: Bug in ? Message-ID: <684STORKEL@RICE> Date: 13 Nov 88 03:39:41 GMT Organization: Rice University - ICSA Lines: 24 We're running AT&T cfront on a variety of Sun machines with SunOS 3.5.2. My questions concerns the declarations in the curses.h header file. In our copy of the curses header the declaration of printw is: extern int printw(char*, int); It seems to me the following would be MUCH more appropriate: extern int printw(char* ...); If I try to use printw with only one argument the compiler always gives me an "argument 2 of type int expected" error. Normally, printw should work exactly like printf. Is there any reason for printw being defined this way? Is there any reason I shouldn't go ahead an put the second declaration in the curses.h file in place of the first? The ident for CC says "CC 1.11" and the ident for curses.h says "curses.h 1.7 2/16/87". Are there newer versions of the curses header files by any chance? Please reply directly to me if possible. Thanks. Scott Storkel Macintosh Software Development Rice University Rice University