Man page - gcvt(3)

Packages contains this manual

Available languages:

en fr pt_BR es pl ja ru ro de

Manual

gcvt

NOME
BIBLIOTECA
SINOPSE
DESCRIÇÃO
VALOR DE RETORNO
ATRIBUTOS
PADRÕES
HISTÓRICO
VEJA TAMBÉM
TRADUÇÃO

NOME

gcvt - converte numĂ©ricos de ponto flutuante para sequĂȘncias de caracteres

BIBLIOTECA

Biblioteca C PadrĂŁo ( libc , -lc )

SINOPSE

#include <stdlib.h>

char *gcvt(double number , int ndigit , char * buf );

Requisitos de macro de teste de recursos para o glibc (consulte feature_test_macros (7)):

gcvt ():
Since glibc 2.17
(_XOPEN_SOURCE >= 500 && ! (_POSIX_C_SOURCE >= 200809L))
|| /* glibc >= 2.20 */ _DEFAULT_SOURCE
|| /* glibc <= 2.19 */ _SVID_SOURCE
glibc 2.12 to glibc 2.16:
(_XOPEN_SOURCE >= 500 && ! (_POSIX_C_SOURCE >= 200112L))
|| _SVID_SOURCE
Before glibc 2.12:
_SVID_SOURCE || _XOPEN_SOURCE >= 500

DESCRIÇÃO

The gcvt () function converts number to a minimal length null-terminated ASCII string and stores the result in buf . It produces ndigit significant digits in either printf (3) F format or E format.

VALOR DE RETORNO

The gcvt () function returns buf .

ATRIBUTOS

Para uma explicação dos termos usados nesta seção, consulte attributes (7).

Image grohtml-3938913-1.png

PADRÕES

None.

HISTÓRICO

Marked as LEGACY in POSIX.1-2001. POSIX.1-2008 removed it, recommending the use of sprintf (3) instead (though snprintf (3) may be preferable).

VEJA TAMBÉM

ecvt (3), fcvt (3), sprintf (3)

TRADUÇÃO

A tradução para portuguĂȘs brasileiro desta pĂĄgina man foi criada por Antonio Belloni <abelloni@ig.com.br> e AndrĂ© Luiz Fassone <lonely_wolf@ig.com.br>

Esta tradução Ă© uma documentação livre; leia a Licença PĂșblica Geral GNU VersĂŁo 3 ou posterior para as condiçÔes de direitos autorais. Nenhuma responsabilidade Ă© aceita.

Se vocĂȘ encontrar algum erro na tradução desta pĂĄgina de manual, envie um e-mail para a lista de discussĂŁo de tradutores .