home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / sys / mac / programm / 18819 < prev    next >
Encoding:
Text File  |  1992-11-23  |  1.1 KB  |  36 lines

  1. Path: sparky!uunet!spool.mu.edu!umn.edu!news.d.umn.edu!ub.d.umn.edu!not-for-mail
  2. From: serickso@ub.d.umn.edu (Scott Erickson)
  3. Newsgroups: comp.sys.mac.programmer
  4. Subject: Odd address error in THINK C 5.0.4
  5. Date: 23 Nov 1992 12:00:42 -0600
  6. Organization: University of Conformity
  7. Lines: 23
  8. Distribution: usa
  9. Message-ID: <1er68aINN134@ub.d.umn.edu>
  10. Reply-To: serickso@ub.d.umn.edu
  11. NNTP-Posting-Host: ub.d.umn.edu
  12.  
  13. Hello:
  14.  
  15.  
  16.   I have this problem that has me perplexed.  I am using alloc to return a
  17. pointer to 2048 character positions.  The code snippet follows:
  18.  
  19. #define YYLMAX    2048
  20.     extern char    *yysbuf, *yytext, *yysptr;
  21.  
  22. -->     yysbuf = (char *)alloc(YYLMAX);
  23.     yysptr = yysbuf;
  24.     yytext = (char *)alloc(YYLMAX);
  25.  
  26.  
  27.   My problem is I get a bomb on the line with the arrow.  I get a message
  28. saying odd address. When I use the THINK C debugger, it returns the message 
  29. "Ox4CD3DE".  I am assuming this is the odd address, but is alloc returning
  30. this address?  What can I do to get around this problem? 
  31.   Please respond via email at serickso@ub.d.umn.edu.  Your help is
  32. appreciated.
  33. -- 
  34. serickso@ub.d.umn.edu                                         Scott Erickson
  35.  
  36.