X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f From: "au_193" Newsgroups: comp.os.msdos.djgpp References: <40222b08 AT news DOT comindico DOT com DOT au> <3405-Thu05Feb2004210810+0200-eliz AT elta DOT co DOT il> Subject: Re: rint(), long double, etc. Lines: 41 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 X-Original-NNTP-Posting-Host: 203.220.15.106 Message-ID: <40261e4e@news.comindico.com.au> X-Original-Trace: 8 Feb 2004 22:32:30 +1100, 203.220.15.106 Date: Sun, 08 Feb 2004 11:32:31 GMT NNTP-Posting-Host: 203.194.27.1 X-Complaints-To: abuse AT comindico DOT com DOT au X-Trace: news.optus.net.au 1076239951 203.194.27.1 (Sun, 08 Feb 2004 22:32:31 EST) NNTP-Posting-Date: Sun, 08 Feb 2004 22:32:31 EST Organization: Comindico Australia - reports relating to abuse should be sent to abuse AT comindico DOT com DOT au To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com "Eli Zaretskii" wrote in message news:3405-Thu05Feb2004210810+0200-eliz AT elta DOT co DOT il... > > From: "au_193" > > Newsgroups: comp.os.msdos.djgpp > > Date: Thu, 05 Feb 2004 11:37:44 GMT > > > > 1) What happened to rint() and rintf() ? > > They are in the header file, but they > > cannot be linked to. > > Link with -lm, these functions are in libm.a, not in libc.a, and so > are not linked in by default. > Thanks for this hint. Unfortunately the alternative math library slows down some other functions considerably which have duplicates in libc. After reading somewhere that long double math functions are mandatory in C99, I was hoping that they'll be available sooner or later as a standard feature in DGJPP. > > 2) What about stpncpy? > > It is mentioned in the HTML library > > documentation, but it is obviously > > not part of DJGPP. > > You are probably looking at the wrong HTML, the one for glibc. > That's not the DJGPP library. No, I was looking at the DJGPP library documentation. After checking again I found out that the downloadable zipped HTML documentation still contains stpncpy, while the online HTML documentation has it already removed. One of you guys might want to look into synchronizing the two versions, if that's not too much trouble. : )