Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-12-23 09:50:05

0001 /* GLIB - Library of useful routines for C programming
0002  * Copyright (C) 1995-1997, 2002  Peter Mattis, Red Hat, Inc.
0003  *
0004  * SPDX-License-Identifier: LGPL-2.1-or-later
0005  *
0006  * This library is free software; you can redistribute it and/or
0007  * modify it under the terms of the GNU Lesser General Public
0008  * License as published by the Free Software Foundation; either
0009  * version 2.1 of the License, or (at your option) any later version.
0010  *
0011  * This library is distributed in the hope that it will be useful,
0012  * but WITHOUT ANY WARRANTY; without even the implied warranty of
0013  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
0014  * Lesser General Public License for more details.
0015  *
0016  * You should have received a copy of the GNU Lesser General Public
0017  * License along with this library; if not, see <http://www.gnu.org/licenses/>.
0018  */
0019 
0020 #ifndef __G_PRINTF_H__
0021 #define __G_PRINTF_H__
0022 
0023 #include <glib.h>
0024 #include <stdio.h>
0025 #include <stdarg.h>
0026 
0027 G_BEGIN_DECLS
0028 
0029 GLIB_AVAILABLE_IN_ALL
0030 gint                  g_printf    (gchar const *format,
0031                                    ...) G_GNUC_PRINTF (1, 2);
0032 GLIB_AVAILABLE_IN_ALL
0033 gint                  g_fprintf   (FILE        *file,
0034                    gchar const *format,
0035                    ...) G_GNUC_PRINTF (2, 3);
0036 GLIB_AVAILABLE_IN_ALL
0037 gint                  g_sprintf   (gchar       *string,
0038                    gchar const *format,
0039                    ...) G_GNUC_PRINTF (2, 3);
0040 
0041 GLIB_AVAILABLE_IN_ALL
0042 gint                  g_vprintf   (gchar const *format,
0043                                    va_list      args) G_GNUC_PRINTF(1, 0);
0044 GLIB_AVAILABLE_IN_ALL
0045 gint                  g_vfprintf  (FILE        *file,
0046                    gchar const *format,
0047                    va_list      args) G_GNUC_PRINTF(2, 0);
0048 GLIB_AVAILABLE_IN_ALL
0049 gint                  g_vsprintf  (gchar       *string,
0050                    gchar const *format,
0051                    va_list      args) G_GNUC_PRINTF(2, 0);
0052 GLIB_AVAILABLE_IN_ALL
0053 gint                  g_vasprintf (gchar      **string,
0054                    gchar const *format,
0055                    va_list      args) G_GNUC_PRINTF(2, 0);
0056 
0057 G_END_DECLS
0058 
0059 #endif /* __G_PRINTF_H__ */