ANSI C compatible stdio/stdlib routines
[UCS-2 Character/String API]

ANSI C compatible stdio/stdlib routines provide utilities for streams and string-integer conversions. More...

Functions

UCS2API int ucs2toi (const ucs2char_t *str)
 Convert a UCS-2 string to integer value.
UCS2API ucs2char_titoucs2 (int value, ucs2char_t *string, int radix)
 Convert an integer value to UCS-2 string.
UCS2API FILE * ucs2fopen (const ucs2char_t *filename, const char *mode)
 Open a stream from a file.
UCS2API int fputucs2c (ucs2char_t c, FILE *fp)
 Write a UCS-2 character to a stream.

Detailed Description

ANSI C compatible stdio/stdlib routines provide utilities for streams and string-integer conversions.


Function Documentation

UCS2API int fputucs2c ( ucs2char_t  c,
FILE *  fp 
)

Write a UCS-2 character to a stream.

Parameters:
c The character to be written.
fp The pointer to the output stream.
Return values:
int Zero if successful, non-zero otherwise.

UCS2API ucs2char_t* itoucs2 ( int  value,
ucs2char_t string,
int  radix 
)

Convert an integer value to UCS-2 string.

Parameters:
value The integer value.
string The pointer to the buffer to receive the string.
radix Radix of the value.
Return values:
ucs2char_t* The pointer to the string, which is the same value as str.

UCS2API FILE* ucs2fopen ( const ucs2char_t filename,
const char *  mode 
)

Open a stream from a file.

Parameters:
filename The pointer to the UCS-2 string for the file name.
mode The pointer to the C string for the open mode.
Return values:
FILE* The pointer to the opened stream if successful, NULL otherwise.

UCS2API int ucs2toi ( const ucs2char_t str  ) 

Convert a UCS-2 string to integer value.

Parameters:
str The pointer to a string.
Return values:
int The corresponding integer value.