format.h 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. /*====================================================================*
  2. *
  3. * format.h - format function definitions and declarations;;
  4. *
  5. * this file is a subset of the original that includes only those
  6. * definitions and declaration needed for toolkit programs;
  7. *
  8. * Motley Tools by Charles Maier;
  9. * Copyright 2001-2006 by Charles Maier Associates;
  10. * Licensed under the Internet Software Consortium License;
  11. *
  12. *--------------------------------------------------------------------*/
  13. #ifndef FORMAT_HEADER
  14. #define FORMAT_HEADER
  15. /*====================================================================*
  16. * system header files;
  17. *--------------------------------------------------------------------*/
  18. #include <unistd.h>
  19. /*====================================================================*
  20. * functions;
  21. *--------------------------------------------------------------------*/
  22. size_t strfbits (char buffer [], size_t length, char const * operands [], char const *operator, unsigned flagword);
  23. /*====================================================================*
  24. * functions;
  25. *--------------------------------------------------------------------*/
  26. #ifdef __GNUC__
  27. __attribute__ ((format (printf, 2, 3)))
  28. #endif
  29. void output (signed indent, char const * format, ...);
  30. #ifdef __GNUC__
  31. __attribute__ ((format (printf, 3, 4)))
  32. #endif
  33. void markup (signed fd, signed level, char const * format, ...);
  34. /*====================================================================*
  35. * end definitions;
  36. *--------------------------------------------------------------------*/
  37. #endif