home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 6 / AACD06.ISO / AACD / Programming / ICU / src / icu / source / tools / genrb / error.c next >
Encoding:
C/C++ Source or Header  |  1999-08-16  |  1.1 KB  |  37 lines

  1. /*
  2. *******************************************************************************
  3. *                                                                             *
  4. * COPYRIGHT:                                                                  *
  5. *   (C) Copyright International Business Machines Corporation, 1998, 1999     *
  6. *   Licensed Material - Program-Property of IBM - All Rights Reserved.        *
  7. *   US Government Users Restricted Rights - Use, duplication, or disclosure   *
  8. *   restricted by GSA ADP Schedule Contract with IBM Corp.                    *
  9. *                                                                             *
  10. *******************************************************************************
  11. *
  12. * File error.c
  13. *
  14. * Modification History:
  15. *
  16. *   Date        Name        Description
  17. *   05/28/99    stephen     Creation.
  18. *******************************************************************************
  19. */
  20.  
  21. #include "error.h"
  22.  
  23. /* This is incredibly non thread-safe, but it doesn't matter for this util */
  24. static const char *gErrorText = 0;
  25.  
  26. void 
  27. setErrorText(const char *s)
  28.   gErrorText = s; 
  29. }
  30.  
  31. const char* 
  32. getErrorText()
  33. {
  34.   return gErrorText;
  35. }
  36.