Path: news.mv.net!news.shore.net!newsfeed.mathworks.com!newsfeed.direct.ca!look.ca!newshub2.rdc1.sfba.home.com!news.home.com!news3.rdc1.on.home.com.POSTED!not-for-mail From: AndrewJ Newsgroups: comp.os.msdos.djgpp Subject: Re: ok, I have more info on problem at hand Message-ID: References: X-Newsreader: Forte Agent 1.7/32.534 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Lines: 15 Date: Sat, 02 Sep 2000 19:33:30 GMT NNTP-Posting-Host: 24.42.120.18 X-Complaints-To: abuse AT home DOT net X-Trace: news3.rdc1.on.home.com 967923210 24.42.120.18 (Sat, 02 Sep 2000 12:33:30 PDT) NNTP-Posting-Date: Sat, 02 Sep 2000 12:33:30 PDT Organization: Excite AT Home - The Leader in Broadband Xref: news.mv.net comp.os.msdos.djgpp:103106 [snip] >> i = (int *)malloc(20); >> should get you started. > >Yeah, I saw that code around and I know what it means, but I didn't >understand the ANSI adoption into GCC. Huh? ANSI adoption... whut? It boils down to C++ requiring a cast. In fact, you have to cast just about everything in C++. However, this sort of cast in C is considered a Bad Idea, as it can hide potential problems from the programmer. ------- AndrewJ