• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Another dummy C question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Another dummy C question


  • Subject: Re: Another dummy C question
  • From: chamlin <email@hidden>
  • Date: Sun, 24 Jun 2001 22:09:45 -0400

On Sunday, June 24, 2001, at 08:35 PM, Michael Grant wrote:

What's up with "malloc" in Project Builder? Trying to compile the program introducing malloc in C for Dummies vol. 2 (lesson 11-4, if anyone cares), I get an error saying "header file 'malloc.h' not found". The book suggests using "alloc.h" rather than "malloc.h" with some compilers, but when I try that I get over **400** errors before I manage to cancel the build. Is there a different header I should be using instead with Project Builder? (I don't think I just left out a semicolon this time....)

Maybe a better question is, where can I find this sort of information in the OS X developer documentation so I don't have to bother this list with it? And where are header files stored, anyway? Sherlock doesn't find them, so I assume they're not stored as actual "files" on the disk....

For that stuff, man pages are convenient:

[localhost:~] chamlin% man malloc
man: Formatting manual page...

MALLOC(3) MALLOC(3)

NAME
malloc, free, realloc, calloc, valloc, malloc_size, mal-
loc_good_size, alloca - memory allocator

SYNOPSIS
#include <stdlib.h>



ch


  • Follow-Ups:
    • Re: Another dummy C question
      • From: Michael Grant <email@hidden>
References: 
 >Another dummy C question (From: Michael Grant <email@hidden>)

  • Prev by Date: Re: Confusion
  • Next by Date: Re: Another dummy C question
  • Previous by thread: Another dummy C question
  • Next by thread: Re: Another dummy C question
  • Index(es):
    • Date
    • Thread