gprintf.h 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. /* GLIB - Library of useful routines for C programming
  2. * Copyright (C) 1995-1997, 2002 Peter Mattis, Red Hat, Inc.
  3. *
  4. * This library is free software; you can redistribute it and/or
  5. * modify it under the terms of the GNU Lesser General Public
  6. * License as published by the Free Software Foundation; either
  7. * version 2 of the License, or (at your option) any later version.
  8. *
  9. * This library is distributed in the hope that it will be useful,
  10. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  12. * Lesser General Public License for more details.
  13. *
  14. * You should have received a copy of the GNU Lesser General Public
  15. * License along with this library; if not, see <http://www.gnu.org/licenses/>.
  16. */
  17. #ifndef __G_PRINTF_H__
  18. #define __G_PRINTF_H__
  19. #include <glib.h>
  20. #include <stdio.h>
  21. #include <stdarg.h>
  22. G_BEGIN_DECLS
  23. GLIB_AVAILABLE_IN_ALL
  24. gint g_printf (gchar const *format,
  25. ...) G_GNUC_PRINTF (1, 2);
  26. GLIB_AVAILABLE_IN_ALL
  27. gint g_fprintf (FILE *file,
  28. gchar const *format,
  29. ...) G_GNUC_PRINTF (2, 3);
  30. GLIB_AVAILABLE_IN_ALL
  31. gint g_sprintf (gchar *string,
  32. gchar const *format,
  33. ...) G_GNUC_PRINTF (2, 3);
  34. GLIB_AVAILABLE_IN_ALL
  35. gint g_vprintf (gchar const *format,
  36. va_list args) G_GNUC_PRINTF(1, 0);
  37. GLIB_AVAILABLE_IN_ALL
  38. gint g_vfprintf (FILE *file,
  39. gchar const *format,
  40. va_list args) G_GNUC_PRINTF(2, 0);
  41. GLIB_AVAILABLE_IN_ALL
  42. gint g_vsprintf (gchar *string,
  43. gchar const *format,
  44. va_list args) G_GNUC_PRINTF(2, 0);
  45. GLIB_AVAILABLE_IN_ALL
  46. gint g_vasprintf (gchar **string,
  47. gchar const *format,
  48. va_list args) G_GNUC_PRINTF(2, 0);
  49. G_END_DECLS
  50. #endif /* __G_PRINTF_H__ */