monetary.h 559 B

12345678910111213141516171819202122232425262728293031
  1. #ifndef _MONETARY_H
  2. #define _MONETARY_H
  3. #ifdef __cplusplus
  4. extern "C" {
  5. #endif
  6. #include <features.h>
  7. #define __NEED_ssize_t
  8. #define __NEED_size_t
  9. #define __NEED_locale_t
  10. #include <bits/alltypes.h>
  11. #if __GNUC__ >= 3
  12. #define __fsfm(x, y) __attribute__ ((__format__ (__strfmon__, x, y)))
  13. #else
  14. #define __fsfm(x, y)
  15. #endif
  16. ssize_t strfmon(char *__restrict, size_t, const char *__restrict, ...) __fsfm(3, 4);
  17. ssize_t strfmon_l(char *__restrict, size_t, locale_t, const char *__restrict, ...) __fsfm(4, 5);
  18. #undef __fsfm
  19. #ifdef __cplusplus
  20. }
  21. #endif
  22. #endif