Back to index

nagios-plugins  1.4.16
localcharset.h
Go to the documentation of this file.
00001 /* Determine a canonical name for the current locale's character encoding.
00002    Copyright (C) 2000-2003, 2009-2010 Free Software Foundation, Inc.
00003    This file is part of the GNU CHARSET Library.
00004 
00005    This program is free software; you can redistribute it and/or modify
00006    it under the terms of the GNU General Public License as published by
00007    the Free Software Foundation; either version 3, or (at your option)
00008    any later version.
00009 
00010    This program is distributed in the hope that it will be useful,
00011    but WITHOUT ANY WARRANTY; without even the implied warranty of
00012    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00013    GNU General Public License for more details.
00014 
00015    You should have received a copy of the GNU General Public License along
00016    with this program; if not, write to the Free Software Foundation,
00017    Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.  */
00018 
00019 #ifndef _LOCALCHARSET_H
00020 #define _LOCALCHARSET_H
00021 
00022 
00023 #ifdef __cplusplus
00024 extern "C" {
00025 #endif
00026 
00027 
00028 /* Determine the current locale's character encoding, and canonicalize it
00029    into one of the canonical names listed in config.charset.
00030    The result must not be freed; it is statically allocated.
00031    If the canonical name cannot be determined, the result is a non-canonical
00032    name.  */
00033 extern const char * locale_charset (void);
00034 
00035 
00036 #ifdef __cplusplus
00037 }
00038 #endif
00039 
00040 
00041 #endif /* _LOCALCHARSET_H */