/* nlssupr.c (emx+gcc) -- Copyright (c) 1992-1996 by Eberhard Mattes */

#include <sys/nls.h>

unsigned char *_nls_strupr (unsigned char *string)
{
  unsigned char *s;

  s = string;
  while (*s != 0)
    if (_nls_is_dbcs_lead (*s))
      {
        if (s[1] == 0)          /* Invalid DBCS character */
          return string;
        s += 2;
      }
    else
      {
        *s = _nls_toupper_tab[*s];
        ++s;
      }
  return string;
}
