libintl.h revision 1.4
11.4Sjoerg/*	$NetBSD: libintl.h,v 1.4 2011/10/14 22:42:01 joerg Exp $	*/
21.1Sitojun
31.1Sitojun/*-
41.1Sitojun * Copyright (c) 2000 Citrus Project,
51.1Sitojun * All rights reserved.
61.1Sitojun *
71.1Sitojun * Redistribution and use in source and binary forms, with or without
81.1Sitojun * modification, are permitted provided that the following conditions
91.1Sitojun * are met:
101.1Sitojun * 1. Redistributions of source code must retain the above copyright
111.1Sitojun *    notice, this list of conditions and the following disclaimer.
121.1Sitojun * 2. Redistributions in binary form must reproduce the above copyright
131.1Sitojun *    notice, this list of conditions and the following disclaimer in the
141.1Sitojun *    documentation and/or other materials provided with the distribution.
151.1Sitojun *
161.1Sitojun * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
171.1Sitojun * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
181.1Sitojun * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
191.1Sitojun * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
201.1Sitojun * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
211.1Sitojun * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
221.1Sitojun * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
231.1Sitojun * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
241.1Sitojun * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
251.1Sitojun * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
261.1Sitojun * SUCH DAMAGE.
271.1Sitojun */
281.1Sitojun
291.1Sitojun#ifndef __LIBINTL_H_DEFINED__
301.1Sitojun#define __LIBINTL_H_DEFINED__
311.1Sitojun
321.1Sitojun#include <sys/cdefs.h>
331.1Sitojun
341.2Sitojun__BEGIN_DECLS
351.4Sjoergchar *gettext(const char *) __format_arg(1);
361.4Sjoergchar *dgettext(const char *, const char *) __format_arg(2);
371.4Sjoergchar *dcgettext(const char *, const char *, int) __format_arg(2);
381.4Sjoergchar *ngettext(const char *, const char *, unsigned long int)
391.4Sjoerg    __format_arg(1) __format_arg(2);
401.4Sjoergchar *dngettext(const char *, const char *, const char *, unsigned long int)
411.4Sjoerg    __format_arg(2) __format_arg(3);
421.3Sjunyoungchar *dcngettext(const char *, const char *, const char *, unsigned long int,
431.4Sjoerg    int) __format_arg(2) __format_arg(3);
441.3Sjunyoung
451.3Sjunyoungchar *textdomain(const char *);
461.3Sjunyoungchar *bindtextdomain(const char *, const char *);
471.3Sjunyoungchar *bind_textdomain_codeset(const char *, const char *);
481.2Sitojun__END_DECLS
491.1Sitojun
501.1Sitojun#endif /*__LIBINTL_H_DEFINED__*/
51