home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!auspex-gw!guy
- From: guy@Auspex.COM (Guy Harris)
- Newsgroups: comp.sys.sun.misc
- Subject: Re: Sun's ANSI C
- Message-ID: <16183@auspex-gw.auspex.com>
- Date: 31 Dec 92 20:01:09 GMT
- References: <1992Dec30.164547.24172@stortek.com> <C04uHC.Bt2@news.cso.uiuc.edu>
- Sender: news@auspex-gw.auspex.com
- Organization: Auspex Systems, Santa Clara
- Lines: 13
- Nntp-Posting-Host: auspex.auspex.com
-
- >The one that really got me was sprintf.
- >In my application, I need to format a string via sprintf and know how long the
- >resulting string is. ANSI requires sprintf to return an integer representing
- >the length of the formatted string, but in Sun's "ANSI" C, sprintf still
- >returns a char*.
-
- Can "acc" be coaxed to compile stuff in the SV environment? If so, try
- that - the SV environment version of "sprintf()" returns the length of
- the formatted string.
-
- Does "acc" come with its own libraries? If so, does it link with them
- by default, or do you have to ask it to do so? If you have to ask it to
- do so, try asking it to do so.
-