.\" -*- coding: UTF-8 -*- '\" t .\" Copyright (C) 2002 Andries Brouwer .\" .\" SPDX-License-Identifier: Linux-man-pages-copyleft .\" .\" This replaces an earlier man page written by Walter Harms .\" . .\" .\"******************************************************************* .\" .\" This file was generated with po4a. Translate the source file. .\" .\"******************************************************************* .TH assert_perror 3 "20 ​​Julio 2023" "Páginas de manual de Linux 6.05.01" .SH NOMBRE assert_perror \- comprueba errnum y aborta .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 \fBvoid assert_perror(int \fP\fIerrnum\fP\fB);\fP .fi .SH DESCRIPCIÓN If the macro \fBNDEBUG\fP was defined at the moment \fI\fP was last included, the macro \fBassert_perror\fP() generates no code, and hence does nothing at all. Otherwise, the macro \fBassert_perror\fP() prints an error message to standard error and terminates the program by calling \fBabort\fP(3) if \fIerrnum\fP is nonzero. The message contains the filename, function name and line number of the macro call, and the output of \fIstrerror(errnum)\fP. .SH "VALOR DEVUELTO" No se devuelve ningún valor. .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 \fBassert_perror\fP() T} Seguridad del hilo Multi\-hilo seguro .TE .sp 1 .SH ESTÁNDARES GNU. .SH ERRORES The purpose of the assert macros is to help programmers find bugs in their programs, things that cannot happen unless there was a coding mistake. However, with system or library calls the situation is rather different, and error returns can happen, and will happen, and should be tested for. Not by an assert, where the test goes away when \fBNDEBUG\fP is defined, but by proper error handling code. Never use this macro. .SH "VÉASE TAMBIÉN" \fBabort\fP(3), \fBassert\fP(3), \fBexit\fP(3), \fBstrerror\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 .