home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / lang / c / 19291 < prev    next >
Encoding:
Text File  |  1993-01-06  |  1.2 KB  |  27 lines

  1. Newsgroups: comp.lang.c
  2. Path: sparky!uunet!stanford.edu!nntp.Stanford.EDU!dkeisen
  3. From: dkeisen@leland.Stanford.EDU (Dave Eisen)
  4. Subject: Re: Problem with string processing.
  5. Message-ID: <1993Jan6.062001.24692@leland.Stanford.EDU>
  6. Sender: news@leland.Stanford.EDU (Mr News)
  7. Organization: Sequoia Peripherals, Inc.
  8. Date: Wed, 6 Jan 93 06:20:01 GMT
  9. Lines: 16
  10.  
  11. In article <1993Jan6.020420.25829@iitmax.iit.edu> matujos@elof.iit.edu (Joe Matusiewicz) writes:
  12. >    The problem was most likely my use of calloc with one argument.  I
  13. >first used malloc and forgot that calloc required 2 parameters, so I 
  14. >accidentally forgot about that.   (But some of you might agree with me that
  15. >the stupidest errors are usually the hardest to find).  Anyway, here is
  16.  
  17. This one should have been easy to find. If you had #included the
  18. file <stdlib.h> which contains the prototype for calloc, your
  19. compiler would have alerted you to your mistake.
  20.  
  21.  
  22. -- 
  23. Dave Eisen                               Sequoia Peripherals: (415) 967-5644
  24. dkeisen@leland.Stanford.EDU              Home:                (415) 321-5154
  25.        There's something in my library to offend everybody. 
  26.           --- Washington Coalition Against Censorship
  27.