Product Documentation

FairCom ISAM for C

Previous Topic

Next Topic

ctu8TOu16

Converts an ASCII or UTF8 Unicode string to a UTF16 encoded string.

Short Name

ctu8TOu16()

Type

Utility

Declaration

NINT ctu8TOu16(pTEXT u8str, pWCHAR u16str, VRLEN u16byt)

Description

ctu8TOu16() converts an ASCII or UTF8 Unicode string to a UTF16 encoded string. The input strings are assumed to be terminated by a NULL character. All output buffer sizes are specified in bytes.

Return

Value

Symbolic Constant

Explanation

0

NO_ERROR

Successful convert.

153

VBSZ_ERR

The output buffer is too small.

446

BMOD_ERR

There is a problem with the input string.

See FairCom DB Error Codes for a complete listing of valid FairCom DB error values.

See also

ctu16TOu8

TOCIndex