format.h 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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 <cmaier@cmassoc.net>;
  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