wctomb.c 334 B

1234567891011121314151617
  1. /*
  2. * (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
  3. * See the copyright notice in the ACK home directory, in the file "Copyright".
  4. */
  5. /* $Id$ */
  6. #include <stdlib.h>
  7. #include <limits.h>
  8. int
  9. wctomb(char *s, wchar_t wchar)
  10. {
  11. if (!s) return 0; /* no state dependent codings */
  12. *s = wchar;
  13. return 1;
  14. }