Re: Another dummy C question
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