Coda Distributed File System
lib-src
base
coda_string.h
Go to the documentation of this file.
1
/* BLURB lgpl
2
3
Coda File System
4
Release 6
5
6
Copyright (c) 1987-2003 Carnegie Mellon University
7
Additional copyrights listed below
8
9
This code is distributed "AS IS" without warranty of any kind under
10
the terms of the GNU Library General Public Licence Version 2, as
11
shown in the file LICENSE. The technical and financial contributors to
12
Coda are listed in the file CREDITS.
13
14
Additional copyrights
15
none currently
16
17
*/
18
19
#ifndef CODA_STRING_H
20
#define CODA_STRING_H
21
22
#ifdef HAVE_CONFIG_H
23
#include <config.h>
24
#endif
25
26
#include <string.h>
27
28
#ifndef HAVE_STRERROR
29
#define strerror(err) \
30
((err >= 0 && err < sys_nerr) ? sys_errlist[err] : "Unknown errorcode"
)
31
#endif
32
33
#ifndef HAVE_SNPRINTF
34
/* yeah, sprintf is not as safe, but snprintf is prety much included on all
35
* platforms anyway. */
36
#define snprintf(str, size, format...) sprintf(str, ##format);
37
#endif
38
39
#endif
Generated by
1.9.4