.\" -*- coding: UTF-8 -*- '\" t .\" Copyright (C) 2001 Andries Brouwer .\" .\" SPDX-License-Identifier: Linux-man-pages-copyleft .\" .\" Text fragments inspired by Martin Schulze . .\" .\"******************************************************************* .\" .\" This file was generated with po4a. Translate the source file. .\" .\"******************************************************************* .TH asprintf 3 "20 ​​Julio 2023" "Páginas de manual de Linux 6.05.01" .SH NOMBRE asprintf, vasprintf \- imprimen en una cadena reservada .SH BIBLIOTECA Biblioteca Estándar C (\fIlibc\fP, \fI\-lc\fP) .SH SINOPSIS .nf \fB#define _GNU_SOURCE\fP /* Vea feature_test_macros(7) */ \fB#include \fP .PP \fBint asprintf(char **restrict \fP\fIstrp\fP\fB, const char *restrict \fP\fIfmt\fP\fB, ...);\fP \fBint vasprintf(char **restrict \fP\fIstrp\fP\fB, const char *restrict \fP\fIfmt\fP\fB,\fP \fB va_list \fP\fIap\fP\fB);\fP .fi .SH DESCRIPCIÓN The functions \fBasprintf\fP() and \fBvasprintf\fP() are analogs of \fBsprintf\fP(3) and \fBvsprintf\fP(3), except that they allocate a string large enough to hold the output including the terminating null byte (\[aq]\e0\[aq]), and return a pointer to it via the first argument. This pointer should be passed to \fBfree\fP(3) to release the allocated storage when it is no longer needed. .SH "VALOR DEVUELTO" Cuando tienen éxito, estas funciones devuelven el número de bytes impresos, al igual que \fBsprintf\fP(3). Si la reserva de memoria no se pudo llevar a cabo, o ocurre algun otro error, estas funciones devuelven \-1, y el contenido de \fIstrp\fP queda indefinido. .SH ATRIBUTOS Para obtener una explicación de los términos usados en esta sección, véase \fBattributes\fP(7). .TS allbox; lbx lb lb l l l. Interfaz Atributo Valor T{ .na .nh \fBasprintf\fP(), \fBvasprintf\fP() T} Seguridad del hilo Configuración regional de multi\-hilo seguro .TE .sp 1 .SH VERSIONES The FreeBSD implementation sets \fIstrp\fP to NULL on error. .SH ESTÁNDARES GNU, BSD. .SH "VÉASE TAMBIÉN" \fBfree\fP(3), \fBmalloc\fP(3), \fBprintf\fP(3) .PP .SH TRADUCCIÓN La traducción al español de esta página del manual fue creada por Miguel Pérez Ibars . .PP Esta traducción es documentación libre; lea la .UR https://www.gnu.org/licenses/gpl-3.0.html GNU General Public License Version 3 .UE o posterior con respecto a las condiciones de copyright. No existe NINGUNA RESPONSABILIDAD. .PP Si encuentra algún error en la traducción de esta página del manual, envíe un correo electrónico a .MT debian-l10n-spanish@lists.debian.org .ME .