File: wctomb.c

package info (click to toggle)
dictd 1.13.1%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, trixie
  • size: 3,920 kB
  • sloc: ansic: 12,523; sh: 4,406; yacc: 512; makefile: 442; cpp: 277; lex: 256; perl: 175; awk: 12
file content (17 lines) | stat: -rw-r--r-- 250 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/*
  partial mbrtowc implementation:
  - doesn't change *ps
  - s should NOT be NULL
*/

#include "dictP.h"

#include <wchar.h>
#include <wctype.h>

#include <stdlib.h>

int wctomb__ (char *s, wchar_t wc)
{
   return (int) wcrtomb__ (s, wc, NULL);
}