home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / sys / amiga / programm / 17602 < prev    next >
Encoding:
Text File  |  1992-12-21  |  1.2 KB  |  30 lines

  1. Newsgroups: comp.sys.amiga.programmer
  2. Path: sparky!uunet!usc!sol.ctr.columbia.edu!usenet.ucs.indiana.edu!navajo!shulick
  3. From: shulick@navajo.ucs.indiana.edu (Sam Hulick)
  4. Subject: Re: Sigh.. OKAY.  ReadArgs() is buggy?
  5. Message-ID: <BzItwD.K21@usenet.ucs.indiana.edu>
  6. Sender: news@usenet.ucs.indiana.edu (USENET News System)
  7. Nntp-Posting-Host: navajo.ucs.indiana.edu
  8. Organization: Vallen Software
  9. References: <BzHto9.9pG@usenet.ucs.indiana.edu> <S37732V.92Dec19110643@lk-hp-16.hut.fi>
  10. Distribution: inet
  11. Date: Sat, 19 Dec 1992 19:24:12 GMT
  12. Lines: 16
  13.  
  14. In article <S37732V.92Dec19110643@lk-hp-16.hut.fi>, s37732v@snakemail.hut.fi (Markus Juhani Aalto) says most sayishly:
  15. >Did you initialize arr array to zeros. Like this arr[0]=0; arr[1]=0; etc..
  16.  
  17. Oh blah.  Don't you hate stupid mistakes? :)  Ok, it works now, with
  18. this addition before ReadArgs():
  19.  
  20.   memset(arr, '\0', sizeof(arr));
  21.  
  22. Thanks.  I probably would've spent the next year trying to figure THAT
  23. one out. :)
  24.  
  25. -- 
  26.     // Amiga 3000   ___ \ Sam Hulick: shulick@indiana.edu (NeXTmail OK!)
  27.    // 68030 25 MHz /__/\ \ My opinions wear combat boots.  Or whatever.
  28. \\// OS 2.04       \__\/ / "Walk!  Not bloody likely.  I am going in a
  29.  \/                     / taxi."  --George Bernard Shaw
  30.