加入收藏
举报
当前仅显示指定条件回帖 [ 展开查看全部 ]
02-14 20:02
#
文件名称:
strings-h.md
所在目录:
Openharmony v1.0 / docs / api / api-SmartVision-Devices
文件大小:
7.33 KB
下载地址:
fenwii/OpenHarmony
   
免责声明:本网站仅提供指向 GitHub 上的文件的链接,所有文件的版权归原作者所有,本网站不对文件内容的合法性、准确性或安全性承担任何责任。
文本预览:
# strings.h
## **Overview**
**Related Modules:**
[UTILS](UTILS.md)
**Description:**
Declares commonly used functions for byte sequence operations.
You can use the functions provided in this file to perform the mathematical operations required during development. Example operations include comparing, copying byte sequences, and setting a byte sequence to 0. You must pay attention to memory management during function calls.
**Since:**
1.0
**Version:**
1.0
## **Summary**
## Functions




































Function Name


Description


bcmp (const void *s1, const void *s2, size_t n)


int 


Compares byte sequences.


bcopy (const void *src, void *dest, size_t n)


void 


Copies byte sequences.


bzero (void *s, size_t n)


void 


Sets byte sequences to zero.


index (const char *s, int c)


char * 


Searches for the first position of the matched character in a string.


rindex (const char *s, int c)


char * 


Searches for the last position of the matched character in a string.


ffs (int i)


int 


Searches for the first bit in a word of the integer type.


ffsl (long int i)


int 


Searches for the first bit in a word of the long integer type.


ffsll (long long int i)


int 


Searches for the first bit in a word of the 8-byte long integer type.


strcasecmp (const char *_l, const char *_r)


int 


Compares two strings (string 1 and string 2), regardless of the letter case.


strncasecmp (const char *_l, const char *_r, size_t n)


int 


Compares a specified length of two strings (string 1 and string 2), regardless of the letter case.


点赞 回复
回帖
支持markdown部分语法 ?