gprintf.h

Go to the documentation of this file.
00001 /* GLIB - Library of useful routines for C programming
00002  * Copyright (C) 1995-1997, 2002  Peter Mattis, Red Hat, Inc.
00003  * Portions copyright (c) 2006 Nokia Corporation.  All rights reserved.
00004  *
00005  * This library is free software; you can redistribute it and/or
00006  * modify it under the terms of the GNU Lesser General Public
00007  * License as published by the Free Software Foundation; either
00008  * version 2 of the License, or (at your option) any later version.
00009  *
00010  * This library 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 GNU
00013  * Lesser General Public License for more details.
00014  *
00015  * You should have received a copy of the GNU Lesser General Public
00016  * License along with this library; if not, write to the
00017  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
00018  * Boston, MA 02111-1307, USA.
00019  */
00020 #ifndef __G_PRINTF_H__
00021 #define __G_PRINTF_H__
00022 
00023 #include <_ansi.h>
00024 #include <glib/gtypes.h>
00025 #include <stdio.h>
00026 #include <stdarg.h>
00027 
00028 G_BEGIN_DECLS
00029 
00030 IMPORT_C gint                  g_printf    (gchar const *format,
00031                                    ...) G_GNUC_PRINTF (1, 2);            
00032 IMPORT_C gint                  g_fprintf   (FILE        *file,
00033                                    gchar const *format,
00034                                    ...) G_GNUC_PRINTF (2, 3);
00035 IMPORT_C gint                  g_sprintf   (gchar       *string,
00036                                    gchar const *format,
00037                                    ...) G_GNUC_PRINTF (2, 3);
00038 IMPORT_C gint                  g_vprintf   (gchar const *format,
00039                                    va_list      args);            
00040 IMPORT_C gint                  g_vfprintf  (FILE        *file,
00041                                    gchar const *format,
00042                                    va_list      args);
00043 IMPORT_C gint                  g_vsprintf  (gchar       *string,
00044                                    gchar const *format,
00045                                    va_list      args);
00046 IMPORT_C gint                  g_vasprintf (gchar      **string,
00047                                    gchar const *format,
00048                                    va_list      args);
00049 
00050 G_END_DECLS
00051 
00052 #endif /* __G_PRINTF_H__ */
00053 
00054 
00055 

Copyright © Nokia Corporation 2001-2008
Back to top