Thread: Where to put free in my program?

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Algorithm Dissector iMalc's Avatar
    Join Date
    Dec 2005
    Location
    New Zealand
    Posts
    6,318
    That's fine. However I suggest you turn your warnings on or up if necessary and pay attention to them, particularly the one about using an uninitialised varaible.
    My homepage
    Advice: Take only as directed - If symptoms persist, please see your debugger

    Linus Torvalds: "But it clearly is the only right way. The fact that everybody else does it some other way only means that they are wrong"

  2. #2
    Registered User
    Join Date
    Jan 2012
    Posts
    166
    Quote Originally Posted by iMalc View Post
    That's fine. However I suggest you turn your warnings on or up if necessary and pay attention to them, particularly the one about using an uninitialised varaible.
    I'm running it in Unix and its not giving me any warnings... and seems to work fine.

  3. #3
    Registered User
    Join Date
    May 2009
    Posts
    4,183
    Quote Originally Posted by hotshotennis View Post
    I'm running it in Unix and its not giving me any warnings... and seems to work fine.
    It has 3 warnings when I compile it.

    I suggest you fix the causes of the warnings.

    This is the option needed to turn on the normal warnings I compile with using GCC.

    Code:
     -Wall
    Tim S.
    Last edited by stahta01; 05-15-2012 at 01:49 PM.
    "...a computer is a stupid machine with the ability to do incredibly smart things, while computer programmers are smart people with the ability to do incredibly stupid things. They are,in short, a perfect match.." Bill Bryson

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. free art program
    By joed in forum A Brief History of Cprogramming.com
    Replies: 5
    Last Post: 04-01-2006, 06:30 PM
  2. Best free c++ program?
    By Warlock in forum C++ Programming
    Replies: 4
    Last Post: 03-13-2006, 08:46 AM
  3. How to free memory in this program
    By Coconut in forum C Programming
    Replies: 1
    Last Post: 10-26-2002, 10:57 PM
  4. Which is the free drawing program?
    By Tazar_Azar in forum Game Programming
    Replies: 5
    Last Post: 03-05-2002, 09:34 AM