Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!decwrl!ads.com!potomac!adiseker From: adiseker@potomac.ads.com (Andrew Diseker) Newsgroups: comp.sys.mac.apps Subject: sizeof() (was: Re: Think C or MPW?) Summary: don't like it? Change it! Keywords: ANSI library source code sizeof() Message-ID: <9133@potomac.ads.com> Date: 7 Sep 90 10:22:56 GMT References: <1816@scott.ed.ac.uk> <1990Sep6.230808.29607@d.cs.okstate.edu> Reply-To: adiseker@potomac.ads.com (Andrew Diseker) Distribution: na Organization: Advanced Decision Systems -- Arlington, Va Lines: 21 I've seen people mention that they don't like the fact that sizeof() returns int instead of size_t. Well, people, Symantec supplies all the source and include files for every macro and library function in their ANSI library! There's nothing preventing you from changing and/or re-implementing anything that you don't like! We had problems with the *alloc() routines that Symantec supplied, so we wrote our own, removed the alloc.c file from the ANSI projects, added our file, and recompiled! That's it! Granted, it took all of a day to do this, and some projects can't afford that, but come on, how many other development environments give you the source code to their libraries? Without having to spend boocoo $$$ that is. I don't mean to flame, but it just gets to me when people don't take advantage of opportunities, especially when the effort required is so minimal. -- Andrew Diseker >Advanced Decision Systems >UUCP: sun!sundc!potomac!adiseker >Internet:adiseker@potomac.ads.com "Indeed, many respected computer scientists have difficulty with left and right even though they can manage the logical con- nectives and can be left to write left to right the right Boolean operations"