Main Page | Modules | Data Structures | File List | Data Fields | Globals | Related Pages

VDI utility functions
[VDI Function Reference]

some usefull utilities function. This library doesn't contain any VDI call. More...

Functions

void vdi_array2str (const short *src, char *des, short len)
short vdi_str2array (const char *src, short *des)
short vdi_wstrlen (const short *wstr)

Detailed Description

some usefull utilities function. This library doesn't contain any VDI call.


Function Documentation

void vdi_array2str const short src,
char *  des,
short  len
 

transform VDI-string (each character is 16-bit wide, the string is not null-terminated and len is in another parameter) to standard C-string.

Parameters:
src input str, each char is 16-bit wide. (src[0] is the 1st character, src[1] is the 2nd char, etc...)
des output string, each char is 8-bit wide (standard NULL-terminated C-string)
len is the len of the input string.

short vdi_str2array const char *  src,
short des
 

Parameters:
src input string (standard null-terminated C-string)
des outpur string (VDI format, each char occupied 16 bits)
Returns:
the len of the string

short vdi_wstrlen const short wstr  ) 
 

return the length of a w-string

Parameters:
wstr a string with 16 bits per character, null-terminated.
Returns:
the length of the string


Generated on Wed Nov 3 22:42:21 2004 for GEMLIB by  doxygen 1.3.9.1