Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Watcom C Library Reference - <u>synopsis:</u> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
Synopsis:
    #include <mbstring.h>
    void _mbccpy( unsigned char *dest,
                  const unsigned char *ch );
    void _fmbccpy( unsigned char __far *dest,
                   const unsigned char __far *ch );

Description:
    The _mbccpy function copies one multibyte character from ch to dest.

    The function is a data model independent form of the _mbccpy function
    that accepts far pointer arguments.  It is most useful in mixed memory
    model applications.

Returns:
    The _mbccpy function does not return a value.


Example:
    #include <stdio.h>
    #include <mbctype.h>
    #include <mbstring.h>

    unsigned char mb1[2] = {
        0x00, 0x00
    };

    unsigned char mb2[4] = {
        0x81, 0x42, 0x81, 0x41
    };

    void main()
      {
        _setmbcp( 932 );
        printf( "%#6.4x\n", mb1[0] << 8 | mb1[1] );
        _mbccpy( mb1, mb2 );
        printf( "%#6.4x\n", mb1[0] << 8 | mb1[1] );
      }

    produces the following:

      0000
    0x8142

Classification:
    WATCOM

Systems:
     _mbccpy - DOS, Windows, Win386, Win32, OS/2 1.x(all), OS/2-32

    _fmbccpy - DOS, Windows, Win386, Win32, OS/2 1.x(all), OS/2-32

See Also:
    _mbccmp, _mbcicmp, _mbcjistojms, _mbcjmstojis, _mbclen, _mbctohira,
    _mbctokata, _mbctolower, _mbctombb, _mbctoupper, mblen, mbrlen, mbrtowc,
    mbsrtowcs, mbstowcs, mbtowc, sisinit, wcrtomb, wcsrtombs, wcstombs,
    wctob, wctomb

See Also: _mbcjistojms _mbcjmstojis

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson