Thread: Is it a build-in function?

  1. #1
    Registered User
    Join Date
    Mar 2003
    Posts
    22

    Is it a build-in function?

    Dear all,

    This is my first time to post message here. I'm glad to see you all here.

    I have met a function called Malloc. There is a line as below:
    #define Malloc(type,n) (type *)malloc((n)*sizeof(type))

    I don't know whether it is a build-in function or not. Also, what is its function?

    Thanks for solving my problem.

  2. #2
    still a n00b Jaguar's Avatar
    Join Date
    Jun 2002
    Posts
    187
    Using `new' for C++ lang need no headers.
    But malloc() for C lang needs <stdlib.h> included.
    slackware 10.0; kernel 2.6.7
    gcc 3.4.0; glibc 2.3.2; vim editor
    migrating to freebsd 5.4

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Getting an error with OpenGL: collect2: ld returned 1 exit status
    By Lorgon Jortle in forum C++ Programming
    Replies: 6
    Last Post: 05-08-2009, 08:18 PM
  2. doubt in c parser coding
    By akshara.sinha in forum C Programming
    Replies: 4
    Last Post: 12-23-2007, 01:49 PM
  3. Including lib in a lib
    By bibiteinfo in forum C++ Programming
    Replies: 0
    Last Post: 02-07-2006, 02:28 PM
  4. Game Pointer Trouble?
    By Drahcir in forum C Programming
    Replies: 8
    Last Post: 02-04-2006, 02:53 AM
  5. Question..
    By pode in forum Windows Programming
    Replies: 12
    Last Post: 12-19-2004, 07:05 PM