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