| delorie.com/archives/browse.cgi | search |
| From: | aho450s AT nic DOT smsu DOT edu (Tony O'Bryan) |
| Newsgroups: | comp.os.msdos.djgpp |
| Subject: | Re: DJGPP Structs |
| Date: | Mon, 03 Mar 1997 13:35:12 GMT |
| Organization: | Southwest Missouri State University |
| Lines: | 10 |
| Message-ID: | <331ad2fc.1169004@ursa.smsu.edu> |
| References: | <01bc2673$a4dbe420$8e54dec2 AT satan> <5fdmdn$mn8 AT freenet-news DOT carleton DOT ca> <331A8647 DOT 65FFF76F AT alcyone DOT com> |
| NNTP-Posting-Host: | forseti.i13.smsu.edu |
| To: | djgpp AT delorie DOT com |
| DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
On Mon, 03 Mar 1997 00:05:27 -0800, Erik Max Francis <max AT alcyone DOT com> wrote: >It will work, but it's not strictly-conforming ANSI C. Converting to a >void * to any other pointer type requires an explicit typecast. Now I'm confused. I wrote a test program that did not cast malloc's return value, compiled with -Wall -ansi, and did not get an error or warning. I was also surprised to find out that malloc is not declared in <malloc.h>, but rather in <stdlib.h>
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |