File: mbtowc.c

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

#include "dictP.h"

#include <wchar.h>
#include <stdlib.h>

int mbtowc__ (wchar_t *pwc, const char *s, size_t n)
{
   return (int) mbrtowc__ (pwc, s, n, NULL);
}