Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!bellcore!salt!roadster!garnett From: garnett@roadster.bellcore.com (Michael Garnett) Newsgroups: comp.lang.c++ Subject: the SUN way.. *&$^#%) Keywords: Sun, C++, F***-up Message-ID: <1990Dec20.114821@roadster.bellcore.com> Date: 19 Dec 90 15:18:21 GMT Sender: news@salt.bellcore.com Reply-To: garnett@thumper.bellcore.com Organization: Information Networks Research (Bellcore) Lines: 30 I'm P***ed! (excuse the language!) Grrrr.... I just started using Sun C++. Great I thought, it even has the icky Sunview headerfiles that I need (in C++ acceptable form). Now I find out that there prototyping is for the BIRDS! This is one stupid thing: char *bsearch (const char*, char*, unsigned, int, int (*)(...)) ); It should be like this: void *bsearch(const void *, void *, unsigned, unsigned, int(*)(const void *, const void *)); Do they mean to tell me that I really have to deal with stdargs/varargs when I want to write a quick compare routine for my data type!? realloc, and free take char* instead of void*, ... Does anyone else see this is a VERY STUPID move on Sun's Part? I have a 3rd part C++ that I like better (it's 2.1, Sun's 2.0), but we only have a license for our sun4s. We have Sun C++ for both sun3s and sun4s. Grrrrrr. *sigh*.... HEY SUN: LISTENING? DON'T RESIST THE ANSI C SPEC! void*s are NICE. You're 'cc' even supports them (but does not use them). How about fixing these header files?? huh?? Oy!