Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Compilers LCC > Simple Warning,...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 5 Topic 1057 of 1070
Post > Topic >>

Simple Warning, How do I remove -- Missing Prototype 'free'

by Christopher <christopherrines@[EMAIL PROTECTED] > Jun 25, 2008 at 11:22 PM

Here's a snippet, real basic stuff...

I am worried about commenting it out and not giving back the
memory...  I though as loc was declared local I need to free it local
hence the use of free() but why the "missing prototype free"
error...

If it helps I have a bunch of other missing prototype errors like atol
and malloc.  All standard library stuff not my own protos.

#include <stdio.h>
#include "xmlapi.h"

ME * var_one;
ME * var_two;
char * loc;
FILE * file;

int main (int argc, char *argv[])
{

   ...Do Stuff...
   free (loc);
}

Thanks in advance.

Christopher
 




 5 Posts in Topic:
Simple Warning, How do I remove -- Missing Prototype 'free'
Christopher <christoph  2008-06-25 23:22:10 
Re: Simple Warning, How do I remove -- Missing Prototype 'free'
Cesar Rabak <csrabak@[  2008-06-26 09:08:39 
Re: Simple Warning, How do I remove -- Missing Prototype 'free'
CBFalconer <cbfalconer  2008-06-26 09:24:35 
Re: Simple Warning, How do I remove -- Missing Prototype 'free'
Keith Thompson <kst-u@  2008-06-26 11:16:04 
Re: Simple Warning, How do I remove -- Missing Prototype 'free'
Christopher <christoph  2008-06-26 13:07:20 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Oct 11 18:33:05 CDT 2008.