Thread: alloc.h

  1. #1
    Registered User
    Join Date
    Feb 2002
    Posts
    14

    Question alloc.h

    I have a problem running my code in Visual c++. It's c code and I'm using alloc.h and malloc but the compiler can't find alloc.h. Is there a different header file with malloc in it or could some one tell me where I could find the alloc.h file so I can add it?

    Thanx

  2. #2
    Registered User Strider's Avatar
    Join Date
    Aug 2001
    Posts
    149
    Code:
    #include <malloc.h>
    David
    One Ring to rule them all, One Ring to find them,
    One Ring to bring them all and in the darkness bind them
    In the Land of Mordor where the Shadows lie.

  3. #3
    Code Goddess Prelude's Avatar
    Join Date
    Sep 2001
    Posts
    9,897
    >Is there a different header file with malloc
    For the most part, we include stdlib.h to use malloc.

    -Prelude
    My best code is written with the delete key.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. alloc.h equivalent in Visual Studio
    By Opariti in forum C Programming
    Replies: 2
    Last Post: 10-23-2008, 11:13 AM