MTK中的字元串拷貝函式,寬位元組,主要用於unicode編碼格式的字串拷貝,用法和strcpy相同,MTK中的kal_wstrcmp、kal_wstrcat等函式也是這樣
基本介紹
- 中文名:kal_wstrcpy
- 平台:MTK平台
- 主要用於:unicode編碼格式的字串拷貝
- 作用:程式移植性、測試和調試的功能
代碼形式,特徵,
代碼形式
檔案:kal_release.h
typedef unsigned short WCHAR;
// 16bits string operationsint kal_wstrlen(const WCHAR *wstr);
WCHAR *kal_wstrcpy(WCHAR *to, const WCHAR *from);
WCHAR *kal_wstrncpy(WCHAR *to, const WCHAR *from, int n);
int kal_wstrcmp(const WCHAR *s1, const WCHAR *s2);
int kal_wstrncmp(const WCHAR *s1, const WCHAR *s2, int n);
WCHAR *kal_wstrcat(WCHAR *s1, const WCHAR *s2);
WCHAR *kal_wstrncat(WCHAR *s1, const WCHAR *s2, int n);
WCHAR *kal_wstrchr(const WCHAR *s, int c);
WCHAR *kal_wstrrchr(const WCHAR *str, int ch);
// dual 8bits string operationsint kal_dchar_strlen(const char *wstr);
char *kal_dchar_strcpy(char *to, const char *from);
char *kal_dchar_strncpy(char *to, const char *from, int n);
int kal_dchar_strcmp(const char *s1, const char *s2);
int kal_dchar_strncmp(const char *s1, const char *s2, int n);
char *kal_dchar_strcat(char *s1, const char *s2);
char *kal_dchar_strncat(char *s1, const char *s2, int n);
char *kal_dchar_strchr(const char *s, int c);
char *kal_dchar_strrchr(const char *str, int ch);
void kal_dchar2char(WCHAR *outstr, char* tostr);
void kal_wsprintf(WCHAR *outstr, char *fmt,...);
#define kal_toWCHAR(asciiString) L##asciiString