wctomb.c 342 B

12345678910111213141516171819
  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. /* $Header$ */
  6. #include <stdlib.h>
  7. #include <limits.h>
  8. int
  9. wctomb(char *s, wchar_t wchar)
  10. {
  11. if (s != (char *)NULL) {
  12. *s = wchar;
  13. return MB_LEN_MAX;
  14. } else
  15. return 0;
  16. }