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

  1. Newsgroups: comp.sys.amiga.programmer
  2. Path: sparky!uunet!gatech!concert!sas!mozart.unx.sas.com!walker
  3. From: walker@twix.unx.sas.com (Doug Walker)
  4. Subject: Re:  SAS6.1 users: please read
  5. Originator: walker@twix.unx.sas.com
  6. Sender: news@unx.sas.com (Noter of Newsworthy Events)
  7. Message-ID: <Bz410C.3np@unx.sas.com>
  8. Date: Fri, 11 Dec 1992 19:33:47 GMT
  9. References: <92337.012542MLO@SLACVM.SLAC.STANFORD.EDU> <ByMz9y.J0H@fc.hp.com> <wfaust.098k@venus.adsp.sub.org>
  10. Nntp-Posting-Host: twix.unx.sas.com
  11. Organization: SAS Institute Inc.
  12. Lines: 34
  13.  
  14.  
  15. In article <wfaust.098k@venus.adsp.sub.org>, wfaust@venus.adsp.sub.org (Wolf Faust) writes:
  16. |> In article <ByMz9y.J0H@fc.hp.com> koren@fc.hp.com (Steve Koren) writes:
  17. |> >LORETI, Maurizio (MLO@SLACVM.SLAC.STANFORD.EDU) wrote:
  18. |> >> Is this a real error? strlen returns a size_t argument
  19. |> >> according with ANSI, and size_t (defined in <stddef.h>) is
  20. |> >
  21. |> >Maybe you're right; maybe its supposed to because size_t is unsigned int
  22. |> >even though num is signed.
  23. |> >
  24. |> >However, at the very least it is something to be aware of, because when
  25. |> >I compile this under 5.10b it does just the opposite thing with the same
  26. |> >code :-)
  27. |> 
  28. |> According to ANSI it's compiler depended. So it may change from
  29. |> compiler to compiler, version to version, revision to revision...
  30.  
  31. This is Not True.  ANSI does mandate the behavior, and 6.x does it
  32. correctly.  In 5.x, I think the prototype for strlen declared it as
  33. returning "int", so the result was indeed negative;  if you had
  34. tried it with the ANSI library/header file update, it would have
  35. come up with the same result as 6.0.
  36.  
  37. |> Wolf Faust                 Internet: wfaust@aurea.hotb.sub.org
  38.  
  39. -- 
  40.   *****
  41. =*|_o_o|\\=====Doug Walker, Software Distiller====== BBS: (919)460-7430 =
  42.  *|. o.| ||                                          1200/2400/9600 Dual
  43.   | o  |//     For all you do, this bug's for you!
  44.   ====== 
  45. usenet: walker@unx.sas.com                            bix: djwalker 
  46. Any opinions expressed are mine, not those of SAS Institute, Inc.
  47.  
  48.