Article View: de.comp.gnu
Article #69Re: Portierung von GNU-AWK 2.10 auf COHERENT
From: Hinrich Eilts
Date: Tue, 13 Oct 1992 12:01
Date: Tue, 13 Oct 1992 12:01
58 lines
2628 bytes
2628 bytes
In article <1992Oct11.134324.19735@nadia.stgt.sub.org> br@nadia.stgt.sub.org (Bernd Rosenau) writes:
ich habe ein Problem bei der Portierung von GAWK auf COHERENT 4.0,
und zwar gibt es im File "awk3.c" einen Funktionsaufruf der
Funktion "gcvt", diese Funktion ist in den Libs von Coh. 4.0
nicht vorhanden.
Kann mir jemand ein Beschreibung dieser Funktion geben,
der Prototyp dieser Funktion lautet soweit ersichtlich:
char *gcvt(double,int,char *)
Maine Manualseite vom NeXT lautet
ECVT(3) UNIX Programmer's Manual ECVT(3)
NAME
ecvt, fcvt, gcvt - output conversion
SYNOPSIS
char *ecvt(value, ndigit, decpt, sign)
double value;
int ndigit, *decpt, *sign;
char *fcvt(value, ndigit, decpt, sign)
double value;
int ndigit, *decpt, *sign;
char *gcvt(value, ndigit, buf)
double value;
char *buf;
DESCRIPTION
Ecvt converts the value to a null-terminated string of ndi-
git ASCII digits and returns a pointer thereto. The posi-
tion of the decimal point relative to the beginning of the
string is stored indirectly through decpt (negative means to
the left of the returned digits). If the sign of the result
is negative, the word pointed to by sign is non-zero, other-
wise it is zero. The low-order digit is rounded.
Fcvt is identical to ecvt, except that the correct digit has
been rounded for Fortran F-format output of the number of
digits specified by ndigits.
Gcvt converts the value to a null-terminated ASCII string in
buf and returns a pointer to buf. It attempts to produce
ndigit significant digits in Fortran F format if possible,
otherwise E format, ready for printing. Trailing zeros may
be suppressed.
SEE ALSO
printf(3)
BUGS
The return values point to static data whose content is
overwritten by each call.
MfG Hinrich
Technical Details
Message-ID:
<Bw26qu.4p2@immd4.informatik.uni-erlangen.de>Path:
arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!wupost!spool.mu.edu!umn.edu!math.fu-berlin.de!fauern!fauna!late59!eiltsReferences:
<1992Oct11.134324.19735@nadia.stgt.sub.org>Show Full Headers
Complete Article Headers
Newsgroups: de.comp.gnu Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!wupost!spool.mu.edu!umn.edu!math.fu-berlin.de!fauern!fauna!late59!eilts From: eilts@late59.e-technik-uni-erlangen.de (Hinrich Eilts) Subject: Re: Portierung von GNU-AWK 2.10 auf COHERENT References: <1992Oct11.134324.19735@nadia.stgt.sub.org> Message-ID: <Bw26qu.4p2@immd4.informatik.uni-erlangen.de> Sender: news@immd4.informatik.uni-erlangen.de Organization: Lehrst. f. Allg. u. Theo. E-Technik, Uni Erlangen-Nuernberg, Germany In-Reply-To: br@nadia.stgt.sub.org's message of Sun, 11 Oct 1992 13:43:24 GMT Date: Tue, 13 Oct 1992 12:01:42 GMT Lines: 58