📄 string_pub.h
字号:
#ifdef __cplusplus#if __cplusplusextern "C"{#endif #endif #ifndef __INC_STRING_PUB_H__#define __INC_STRING_PUB_H__#define aos_memzero( dest, count) aos_memset(dest, 0, count)VOID *aos_memset( VOID *dest, U8 ch, SIZE_T count );VOID *aos_memcpy( VOID *dest, VOID *src, SIZE_T count );VOID *aos_memmove( VOID * dest, const VOID * src, SIZE_T count );VOID *aos_memchr( VOID * buf, S8 ch, SIZE_T count );S32 aos_memcmp( VOID * buf1, const VOID * buf2, SIZE_T count );S8 *aos_strcat (S8 *dest, const S8 *src);S8 *aos_strchr (const S8 *str, S32 i);S8* aos_strstr(S8 * source, S8 *key);S32 aos_strcmp (const S8 *s1, const S8 *s2);S32 aos_stricmp (const S8 *s1, const S8 *s2);S32 aos_strncmp (const S8 *s1, const S8 *s2, U32 n);S32 aos_strnicmp (const S8 *s1, const S8 *s2, U32 n);S8 *aos_strcpy (S8 *dest, const S8 *src);S8 *aos_strncpy (S8 *dest, const S8 *src, U32 n);U32 aos_strlen (const S8 *str);SIZE_T aos_strnlen(const S8 * str, SIZE_T count);S8 aos_toupper(S8 ch);S8 aos_tolower(S8 ch);VOID aos_uppercase (S8 *str);VOID aos_lowercase (S8 *str);S32 aos_atol (const S8 *szStr, S32 *pnVal);S32 aos_atol_range (const S8 *szStr, S32 *pnVal, S32 nMin, S32 nMax);S32 aos_atoul (const S8 *szStr, U32 *pulVal);S32 aos_atolx (const S8 *szStr, S32 *pnVal);S32 aos_atolx_range (const S8 *szStr, S32 *pnVal, S32 nMin, S32 nMax);S32 aos_atoulx (const S8 *szStr, U32 *pulVal);S32 aos_ltoa (S32 nVal, S8 *szStr);S32 aos_ltoax (S32 nVal, S8 *szStr);S32 aos_ultoax (U32 ulVal, S8 *szStr);S8 *aos_ipaddrtostr(U32 ulAddr, S8 *szStr);S32 aos_strtoipaddr(S8 *szStr, U32 *pulIpAddr);S8* aos_ultoa(U32 Value,S8 *szDest,S32 Radix);U32 aos_strtoul(const S8 *nptr, S8 **endptr, S32 base);S32 aos_vsprintf(S8 * str,const S8 *format,va_list argument);S32 aos_sprintf(S8 *str, const S8 *fmt, ...);S32 aos_sscanf(const S8 *buffer, const S8 *format, ...);S32 aos_vsnprintf(S8 *buf, SIZE_T size, const S8 *fmt, va_list args);S32 aos_snprintf(S8 * buf, SIZE_T size, const S8 *fmt, ...);S32 aos_vsscanf(const S8 * buf, const S8 * fmt, va_list args);U16 aos_ntohs( U16 str );U16 aos_htons( U16 str );U32 aos_ntohl( U32 n );U32 aos_htonl( U32 n );#endif#ifdef __cplusplus#if __cplusplus}#endif #endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -