version.c 752 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. /*====================================================================*
  2. *
  3. * void version();
  4. *
  5. * version.h
  6. *
  7. * print program and package version information on stdout;
  8. *
  9. * Motley Tools by Charles Maier;
  10. * Copyright (c) 2001-2006 by Charles Maier Associates;
  11. * Licensed under the Internet Software Consortium License;
  12. *
  13. *--------------------------------------------------------------------*/
  14. #ifndef VERSION_SOURCE
  15. #define VERSION_SOURCE
  16. #include <stdio.h>
  17. #include <stdlib.h>
  18. #include "../tools/version.h"
  19. void version ()
  20. {
  21. extern char const * program_name;
  22. printf ("%s ", program_name);
  23. printf (PROJECT "-");
  24. printf (VERSION " ");
  25. printf (RELEASE " ");
  26. printf ("ISO C ");
  27. printf (COMPANY "\n");
  28. return;
  29. }
  30. #endif