Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
John McEleney
/
mailutils
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit
2d8a8942
...
2d8a8942cda6d816c4840d0dff1cf7fe76964d88
authored
2005-01-01 16:20:20 +0000
by
Sergey Poznyakoff
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
A template file for muerrno.c
1 parent
e12873bf
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
65 additions
and
0 deletions
mailbox/muerrno.cin
mailbox/muerrno.cin
0 → 100644
View file @
2d8a894
/* -*- c -*- $AUTOWARN
GNU Mailutils -- a suite of utilities for electronic mail
Copyright (C) 1999, 2000, 2001, 2002, 2003,
2004, 2005 Free Software Foundation, Inc.
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
#include <stdio.h>
#include <errno.h>
#include <string.h>
#include <mailutils/errno.h>
#include <mailutils/nls.h>
#ifndef EOK
# define EOK 0
#endif
const
char
*
mu_errname
(
int
e
)
{
static
char
buf
[
128
];
switch
(
e
)
{
case
EOK
:
return
"EOK"
;
$
MESSAGE_CODES
}
snprintf
(
buf
,
sizeof
buf
,
_
(
"Error %d"
),
e
);
return
buf
;
}
const
char
*
mu_strerror
(
int
e
)
{
switch
(
e
)
{
case
EOK
:
return
_
(
"Success"
);
$
MESSAGE_STRINGS
}
return
strerror
(
e
);
}
Please
register
or
sign in
to post a comment