Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Postfix/src/util/     Datei vom 17.8.2024 mit Größe 723 B image not shown  

Quelle  mystrerror.c   Sprache: C

 

/*++
/* NAME
/* mystrerror 3
/* SUMMARY
/* convert error number to string
/* SYNOPSIS
/* #include <stringops.h>
/*
/* const char *mystrerror()
/* int errnum)
/* DESCRIPTION
/* mystrerror() maps an error number to string. Unlike strerror(3)
/* it returns "Application error" instead of "Success".
/* LICENSE
/* .ad
/* .fi
/* The Secure Mailer license must be distributed with this software.
/* AUTHOR(S)
/* Wietse Venema
/* porcupine.org
/*--*/


 /*
  * System library.
  */

#include <sys_defs.h>
#include <string.h>

 /*
  * Utility library.
  */

#include <stringops.h>

/* mystrerror - convert error number to string */

const char *mystrerror(int errnum)
{
    return (errnum ? strerror(errnum) : "Application error");
}

Messung
CHZG
1009710098

¤ Dauer der Verarbeitung: 0.0 Sekunden  (vorverarbeitet am  2026-11-24) ¤

*© Formatika GbR, Deutschland