home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!spool.mu.edu!umn.edu!news.d.umn.edu!ub.d.umn.edu!not-for-mail
- From: serickso@ub.d.umn.edu (Scott Erickson)
- Newsgroups: comp.sys.mac.programmer
- Subject: Odd address error in THINK C 5.0.4
- Date: 23 Nov 1992 12:00:42 -0600
- Organization: University of Conformity
- Lines: 23
- Distribution: usa
- Message-ID: <1er68aINN134@ub.d.umn.edu>
- Reply-To: serickso@ub.d.umn.edu
- NNTP-Posting-Host: ub.d.umn.edu
-
- Hello:
-
-
- I have this problem that has me perplexed. I am using alloc to return a
- pointer to 2048 character positions. The code snippet follows:
-
- #define YYLMAX 2048
- extern char *yysbuf, *yytext, *yysptr;
-
- --> yysbuf = (char *)alloc(YYLMAX);
- yysptr = yysbuf;
- yytext = (char *)alloc(YYLMAX);
-
-
- My problem is I get a bomb on the line with the arrow. I get a message
- saying odd address. When I use the THINK C debugger, it returns the message
- "Ox4CD3DE". I am assuming this is the odd address, but is alloc returning
- this address? What can I do to get around this problem?
- Please respond via email at serickso@ub.d.umn.edu. Your help is
- appreciated.
- --
- serickso@ub.d.umn.edu Scott Erickson
-
-