home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.mac.programmer
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!sdd.hp.com!ux1.cso.uiuc.edu!news.iastate.edu!niko
- From: niko@iastate.edu (Nikolaus E Schuessler)
- Subject: Re: THINK C 5.0 Code overflow
- Message-ID: <1992Jul27.172249.17584@news.iastate.edu>
- Keywords: error,C programming, THINK C 5.0, Mac
- Sender: news@news.iastate.edu (USENET News System)
- Organization: Iowa State University, Ames, IA
- References: <1992Jul27.160800.18222@cs.few.eur.nl>
- Date: Mon, 27 Jul 1992 17:22:49 GMT
- Lines: 33
-
- In article <1992Jul27.160800.18222@cs.few.eur.nl> christ@cs.few.eur.nl (Christ Leijtens) writes:
-
- > Question: Is there *any* way to get around this bound for
- > the code and data, so we can continue porting the program to the
- > Macintosh? We would like any information on porting programs from
- > other implementation of the C-language to Macintosh THINK C 5.0.
- >
-
- Yes, there is... You have to declare all arrays as pointers to arrays
- and malloc them in a routine at the start of your program... A * real *
- pain ...
-
- char x[1000];
-
- to char *x;
-
- ...
-
- x = (char *) malloc(1000 * sizeof(char))
-
- >--
- > e-mail: christ@cs.few.eur.nl _(.~\ ____
- > christ@sus.eur.nl /_| /_/\/\/\__
- > > _/\/\/\/\/
-
-
- Like your turtle ...
-
- --
- Niko Schuessler
- Project Vincent Systems Manager email: niko@iastate.edu
- Iowa State University Computation Center voice: (515) 294-1672
- Ames IA 50010 snail: 272 Durham
-