Go to the first, previous, next, last section, table of contents.


fcvt

Syntax

#include <stdlib.h>

char * fcvt (double value, int ndigits, int *decpt, int *sign)

Description

This function converts the value into a null-terminated string, and returns a pointer to that string.

fcvt works exactly like fcvtbuf (see section fcvtbuf), except that it generates the string in an internal static buffer which is overwritten on each call.

Return Value

A pointer to the generated string.

Portability

not ANSI, not POSIX


Go to the first, previous, next, last section, table of contents.