home *** CD-ROM | disk | FTP | other *** search
/ Programming Win32 Under the API / ProgrammingWin32UnderTheApiPatVillani.iso / Chapter9 / cmd32 / ERR.C < prev    next >
Encoding:
C/C++ Source or Header  |  2000-04-28  |  1.4 KB  |  50 lines

  1. /****************************************************************/
  2. /*                                */
  3. /*                  err.c                */
  4. /*                                */
  5. /*            cmd32 Error Support            */
  6. /*                                */
  7. /*            Copyright (c) 2000            */
  8. /*            Pasquale J. Villani            */
  9. /*            All Rights Reserved            */
  10. /*                                */
  11. /* This file is part of CMD32.                    */
  12. /*                                */
  13. /* CMD32 is free software; you can redistribute it and/or    */
  14. /* modify it under the terms of the GNU General Public License    */
  15. /* as published by the Free Software Foundation; either version    */
  16. /* 2, or (at your option) any later version.            */
  17. /*                                */
  18. /* CMD32 is distributed in the hope that it will be useful, but    */
  19. /* WITHOUT ANY WARRANTY; without even the implied warranty of    */
  20. /* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See    */
  21. /* the GNU General Public License for more details.        */
  22. /*                                */
  23. /* You should have received a copy of the GNU General Public    */
  24. /* License along with CMD32; see the file COPYING.  If not,    */
  25. /* write to the Free Software Foundation, 675 Mass Ave,        */
  26. /* Cambridge, MA 02139, USA.                    */
  27. /****************************************************************/
  28.  
  29. /* $Logfile$ */
  30.  
  31. /* $Log$ 
  32.  * $EndLog$ */
  33.  
  34. #ifdef VERSION_STRINGS
  35. static char *RcsId = "$Header$";
  36. #endif
  37.  
  38. #include <windows.h>
  39. #include "globals.h"
  40.  
  41.  
  42. void error_message(index)
  43. enum error_mess index;
  44. {
  45.     printf(error_messages[index], error_mess_str);
  46.     printf("\n\n");
  47.     error_mess_str = "";
  48. }
  49.  
  50.