Navit SVN

/work/compile/navit/src/navit/support/glib/gprintf.h

00001 /* GLIB - Library of useful routines for C programming
00002  * Copyright (C) 1995-1997, 2002  Peter Mattis, Red Hat, Inc.
00003  *
00004  * This library is free software; you can redistribute it and/or
00005  * modify it under the terms of the GNU Lesser General Public
00006  * License as published by the Free Software Foundation; either
00007  * version 2 of the License, or (at your option) any later version.
00008  *
00009  * This library is distributed in the hope that it will be useful,
00010  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00011  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00012  * Lesser General Public License for more details.
00013  *
00014  * You should have received a copy of the GNU Lesser General Public
00015  * License along with this library; if not, write to the
00016  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
00017  * Boston, MA 02111-1307, USA.
00018  */
00019 
00020 #ifndef __G_PRINTF_H__
00021 #define __G_PRINTF_H__
00022 
00023 #include <glib.h>
00024 #include <stdio.h>
00025 #include <stdarg.h>
00026 
00027 G_BEGIN_DECLS
00028 
00029 gint                  g_printf    (gchar const *format,
00030                                    ...) G_GNUC_PRINTF (1, 2);
00031 gint                  g_fprintf   (FILE        *file,
00032                                    gchar const *format,
00033                                    ...) G_GNUC_PRINTF (2, 3);
00034 gint                  g_sprintf   (gchar       *string,
00035                                    gchar const *format,
00036                                    ...) G_GNUC_PRINTF (2, 3);
00037 
00038 gint                  g_vprintf   (gchar const *format,
00039                                    va_list      args);
00040 gint                  g_vfprintf  (FILE        *file,
00041                                    gchar const *format,
00042                                    va_list      args);
00043 gint                  g_vsprintf  (gchar       *string,
00044                                    gchar const *format,
00045                                    va_list      args);
00046 gint                  g_vasprintf (gchar      **string,
00047                                    gchar const *format,
00048                                    va_list      args);
00049 
00050 G_END_DECLS
00051 
00052 #endif /* __G_PRINTF_H__ */