1999-08-16 21:50:52 +00:00
|
|
|
/*
|
|
|
|
*******************************************************************************
|
1999-12-13 22:28:37 +00:00
|
|
|
*
|
|
|
|
* Copyright (C) 1998-1999, International Business Machines
|
|
|
|
* Corporation and others. All Rights Reserved.
|
|
|
|
*
|
1999-08-16 21:50:52 +00:00
|
|
|
*******************************************************************************
|
|
|
|
*
|
|
|
|
* File error.c
|
|
|
|
*
|
|
|
|
* Modification History:
|
|
|
|
*
|
|
|
|
* Date Name Description
|
|
|
|
* 05/28/99 stephen Creation.
|
|
|
|
*******************************************************************************
|
|
|
|
*/
|
|
|
|
|
2000-05-22 21:24:12 +00:00
|
|
|
#include "cstring.h"
|
1999-08-16 21:50:52 +00:00
|
|
|
#include "error.h"
|
|
|
|
|
|
|
|
/* This is incredibly non thread-safe, but it doesn't matter for this util */
|
2000-05-22 21:24:12 +00:00
|
|
|
static char gErrorText[200] = { "" };
|
1999-08-16 21:50:52 +00:00
|
|
|
|
|
|
|
void
|
|
|
|
setErrorText(const char *s)
|
2000-05-22 21:24:12 +00:00
|
|
|
{
|
|
|
|
uprv_strcpy(gErrorText, s);
|
1999-08-16 21:50:52 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
const char*
|
|
|
|
getErrorText()
|
|
|
|
{
|
2000-05-22 21:24:12 +00:00
|
|
|
return gErrorText[0] != 0 ? gErrorText : NULL;
|
1999-08-16 21:50:52 +00:00
|
|
|
}
|