|
WS63 SDK 文档 7021f4f@fbb_ws63
ws63 和 ws63e 解决方案的 SDK 文档
|
函数 | |
| int | osal_memncmp (const void *buf1, const void *buf2, unsigned long size) |
| Compare memory areas. | |
| int | osal_strcmp (const char *s1, const char *s2) |
| Compare two strings. | |
| int | osal_strncmp (const char *s1, const char *s2, unsigned long size) |
| Compare two strings. | |
| int | osal_strcasecmp (const char *s1, const char *s2) |
| Compare two strings ignoring case. | |
| int | osal_strncasecmp (const char *s1, const char *s2, unsigned long size) |
| Compare two strings ignoring case. | |
| char * | osal_strchr (const char *s, int n) |
| Locate character in string. | |
| char * | osal_strnchr (const char *s, int count, int c) |
| Find a character in a length limited string. | |
| char * | osal_strrchr (const char *s, int c) |
| Find the last occurrence of a character in a string. | |
| char * | osal_strstr (const char *s1, const char *s2) |
| Locate a substring. | |
| char * | osal_strnstr (const char *s1, const char *s2, int n) |
| Locate a substring in a length limited string. | |
| unsigned int | osal_strlen (const char *s) |
| Calculate the length of a string. | |
| unsigned int | osal_strnlen (const char *s, unsigned int size) |
| Determine the length of a fixed-size string. | |
| char * | osal_strpbrk (const char *s1, const char *s2) |
| Search a string for any of a set of bytes. | |
| char * | osal_strsep (char **s, const char *ct) |
| Extract token from string. | |
| unsigned int | osal_strspn (const char *s, const char *accept) |
| Get length of a prefix substring. | |
| unsigned int | osal_strcspn (const char *s, const char *reject) |
| Get length of a prefix substring. | |
| void * | osal_memscan (void *addr, int c, int size) |
| Find a character in an area of memory. | |
| int | osal_memcmp (const void *cs, const void *ct, int count) |
| Compare two areas of memory. | |
| void * | osal_memchr (const void *s, int c, int n) |
| Find a character in an area of memory. | |
| void * | osal_memchr_inv (const void *s, int c, int n) |
| Find an unmatching character in an area of memory. | |
| unsigned long long | osal_strtoull (const char *cp, char **endp, unsigned int base) |
| Convert a string to an unsigned long long integer. | |
| unsigned long | osal_strtoul (const char *cp, char **endp, unsigned int base) |
| Convert a string to an unsigned long integer. | |
| long | osal_strtol (const char *cp, char **endp, unsigned int base) |
| Convert a string to a long integer. | |
| long long | osal_strtoll (const char *cp, char **endp, unsigned int base) |
| Convert a string to a long long integer. | |
| void * osal_memchr | ( | const void * | s, |
| int | c, | ||
| int | n | ||
| ) |
Find a character in an area of memory.
| s | [in] The memory area. |
| c | [in] The byte to search for. |
| n | [in] The size of the area. |
| void * osal_memchr_inv | ( | const void * | s, |
| int | c, | ||
| int | n | ||
| ) |
Find an unmatching character in an area of memory.
| s | [in] The memory area. |
| c | [in] Find a character other than c. |
| n | [in] The size of the area. |
| int osal_memcmp | ( | const void * | cs, |
| const void * | ct, | ||
| int | count | ||
| ) |
Compare two areas of memory.
| cs | [in] One area of memory. |
| ct | [in] Another area of memory. |
| count | [in] The size of the area. |
| int osal_memncmp | ( | const void * | buf1, |
| const void * | buf2, | ||
| unsigned long | size | ||
| ) |
Compare memory areas.
| buf1 | [in] the memory areas to be compared. |
| buf2 | [in] the memory areas to be compared. |
| size | [in] the size of the memory areas. |
| void * osal_memscan | ( | void * | addr, |
| int | c, | ||
| int | size | ||
| ) |
Find a character in an area of memory.
| addr | [in] The memory area. |
| c | [in] The byte to search for. |
| size | [in] The size of the area. |
| int osal_strcasecmp | ( | const char * | s1, |
| const char * | s2 | ||
| ) |
Compare two strings ignoring case.
| s1 | [in] the string to be compared. |
| s2 | [in] the string to be compared. |
| char * osal_strchr | ( | const char * | s, |
| int | n | ||
| ) |
Locate character in string.
| s | [in] the string to be searched. |
| n | [in] the character to search for. |
| int osal_strcmp | ( | const char * | s1, |
| const char * | s2 | ||
| ) |
Compare two strings.
| s1 | [in] the string to be compared. |
| s2 | [in] the string to be compared. |
| unsigned int osal_strcspn | ( | const char * | s, |
| const char * | reject | ||
| ) |
Get length of a prefix substring.
| s | [in] The string to be searched. |
| reject | [in] The string to avoid. |
| unsigned int osal_strlen | ( | const char * | s | ) |
Calculate the length of a string.
| s | [in] the string to be calculated. |
| int osal_strncasecmp | ( | const char * | s1, |
| const char * | s2, | ||
| unsigned long | size | ||
| ) |
Compare two strings ignoring case.
| s1 | [in] the string to be compared. |
| s2 | [in] the string to be compared. |
| size | [in] the size of the string. |
| char * osal_strnchr | ( | const char * | s, |
| int | count, | ||
| int | c | ||
| ) |
Find a character in a length limited string.
| s | [in] the string to be searched. |
| count | [in] the number of characters to be searched. |
| c | [in] the character to search for. |
| int osal_strncmp | ( | const char * | s1, |
| const char * | s2, | ||
| unsigned long | size | ||
| ) |
Compare two strings.
| s1 | [in] the string to be compared. |
| s2 | [in] the string to be compared. |
| size | [in] the size of the string. |
| unsigned int osal_strnlen | ( | const char * | s, |
| unsigned int | size | ||
| ) |
Determine the length of a fixed-size string.
| s | [in] the string to be calculated. |
| size | [in] the length of string. |
| char * osal_strnstr | ( | const char * | s1, |
| const char * | s2, | ||
| int | n | ||
| ) |
Locate a substring in a length limited string.
| s1 | [in] the string to be searched. |
| s2 | [in] the substring to search for. |
| n | [in] the length of string. |
| char * osal_strpbrk | ( | const char * | s1, |
| const char * | s2 | ||
| ) |
Search a string for any of a set of bytes.
| s1 | [in] The string to be searched. |
| s2 | [in] The characters to search for. |
| char * osal_strrchr | ( | const char * | s, |
| int | c | ||
| ) |
Find the last occurrence of a character in a string.
| s | [in] the string to be searched. |
| c | [in] the character to search for. |
| char * osal_strsep | ( | char ** | s, |
| const char * | ct | ||
| ) |
Extract token from string.
| s | [in/out] The string to be searched. |
| ct | [in] The characters to search for. |
| unsigned int osal_strspn | ( | const char * | s, |
| const char * | accept | ||
| ) |
Get length of a prefix substring.
| s | [in] The string to be searched. |
| accept | [in] The characters to search for. |
| char * osal_strstr | ( | const char * | s1, |
| const char * | s2 | ||
| ) |
Locate a substring.
| s1 | [in] the string to be searched. |
| s2 | [in] the substring to search for. |
| long osal_strtol | ( | const char * | cp, |
| char ** | endp, | ||
| unsigned int | base | ||
| ) |
Convert a string to a long integer.
| cp | [in] The string to be converted. |
| endp | [in/out] Stores the result. |
| base | [in] The base of conversion. |
| long long osal_strtoll | ( | const char * | cp, |
| char ** | endp, | ||
| unsigned int | base | ||
| ) |
Convert a string to a long long integer.
| cp | [in] The string to be converted. |
| endp | [in/out] Stores the result. |
| base | [in] The base of conversion. |
| unsigned long osal_strtoul | ( | const char * | cp, |
| char ** | endp, | ||
| unsigned int | base | ||
| ) |
Convert a string to an unsigned long integer.
| cp | [in] The string to be converted. |
| endp | [in/out] Stores the result. |
| base | [in] The base of conversion. |
| unsigned long long osal_strtoull | ( | const char * | cp, |
| char ** | endp, | ||
| unsigned int | base | ||
| ) |
Convert a string to an unsigned long long integer.
| cp | [in] The string to be converted. |
| endp | [in/out] Stores the result. |
| base | [in] The base of conversion. |