/****************************************************************************
 *
 * $Source: /usr/local/cvsroot/gccsdk/unixlib/source/wchar/wctomb.c,v $
 * $Date: 2001/01/29 15:10:22 $
 * $Revision: 1.2 $
 * $State: Exp $
 * $Author: admin $
 *
 ***************************************************************************/

#ifdef EMBED_RCSID
static const char rcs_id[] = "$Id: wctomb.c,v 1.2 2001/01/29 15:10:22 admin Exp $";
#endif

#include <stdlib.h>

int
wctomb (char *s, wchar_t wchar)
{
  if (s == NULL)
    return 0;

  *s = (char) wchar;
  return 1;
}
