File: mbrtowc

package info (click to toggle)
gnulib 20230209%2Bstable-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 81,252 kB
  • sloc: ansic: 316,871; sh: 27,090; python: 7,774; cpp: 2,663; yacc: 1,855; perl: 897; makefile: 400; lisp: 328; java: 5
file content (62 lines) | stat: -rw-r--r-- 1,490 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
Description:
mbrtowc() function: convert multibyte character to wide character.

Files:
lib/mbrtowc.c
lib/mbrtowc-impl.h
lib/mbrtowc-impl-utf8.h
lib/lc-charset-dispatch.h
lib/lc-charset-dispatch.c
lib/mbtowc-lock.h
lib/mbtowc-lock.c
lib/windows-initguard.h
m4/mbrtowc.m4
m4/mbstate_t.m4
m4/locale-fr.m4
m4/locale-ja.m4
m4/locale-zh.m4
m4/codeset.m4
m4/threadlib.m4
m4/visibility.m4

Depends-on:
wchar
extensions
attribute       [test $HAVE_MBRTOWC = 0 || test $REPLACE_MBRTOWC = 1]
stdint          [test $HAVE_MBRTOWC = 0 || test $REPLACE_MBRTOWC = 1]
hard-locale     [{ test $HAVE_MBRTOWC = 0 || test $REPLACE_MBRTOWC = 1; } && test $REPLACE_MBSTATE_T = 0]
mbsinit         [{ test $HAVE_MBRTOWC = 0 || test $REPLACE_MBRTOWC = 1; } && test $REPLACE_MBSTATE_T = 0]
assert-h        [test $HAVE_MBRTOWC = 0 || test $REPLACE_MBRTOWC = 1]
localcharset    [test $HAVE_MBRTOWC = 0 || test $REPLACE_MBRTOWC = 1]
streq           [test $HAVE_MBRTOWC = 0 || test $REPLACE_MBRTOWC = 1]

configure.ac:
gl_FUNC_MBRTOWC
gl_CONDITIONAL([GL_COND_OBJ_MBRTOWC],
               [test $HAVE_MBRTOWC = 0 || test $REPLACE_MBRTOWC = 1])
AM_COND_IF([GL_COND_OBJ_MBRTOWC], [
  if test $REPLACE_MBSTATE_T = 1; then
    AC_LIBOBJ([lc-charset-dispatch])
    AC_LIBOBJ([mbtowc-lock])
    gl_PREREQ_MBTOWC_LOCK
  fi
  gl_PREREQ_MBRTOWC
])
gl_WCHAR_MODULE_INDICATOR([mbrtowc])

Makefile.am:
if GL_COND_OBJ_MBRTOWC
lib_SOURCES += mbrtowc.c
endif

Include:
<wchar.h>

Link:
$(LIB_MBRTOWC)

License:
LGPLv2+

Maintainer:
all