Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!uwm.edu!srcsip!coltrane!carpent From: carpent@SRC.Honeywell.COM (Todd Carpenter) Newsgroups: comp.sys.amiga.tech Subject: Lattice 5.04 problem with free() Message-ID: <36769@srcsip.UUCP> Date: 28 Oct 89 21:51:36 GMT Sender: news@src.honeywell.COM Lines: 31 Does free() return a value? It used to, in 5.02. I just installed 5.04, and attempted to recompile some things, and got errors when checking free() to see if it returns a fail code. /* silly code example */ #include main() { char *temp; temp = malloc (6); strcpy(temp,"Hello"); if (free(temp) != 0) return (1); return (0); } compile with >lc -L tmp. if(free(temp) != 0); ^ tmp.c 7 Error 91: illegal void operand Any ideas out there? Am I using something wrong that managed to get by 5.02 all right? -Todd C.