Provided by: manpages-pt-br-dev_4.27.0-1_all bug

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).
       ┌─────────────────────────────────────────────────────────────────────────────┬───────────────┬─────────┐
       │ InterfaceAtributoValor   │
       ├─────────────────────────────────────────────────────────────────────────────┼───────────────┼─────────┤
       │ gcvt()                                                                      │ Thread safety │ MT-Safe │
       └─────────────────────────────────────────────────────────────────────────────┴───────────────┴─────────┘

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.

Linux man-pages 6.9.1                              2 maio 2024                                           gcvt(3)