memchr

来自cppreference.com
< c | string | byte

 
 
 
NULL结尾的字节串
功能
Original:
Functions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
字符操作
Original:
Character manipulation
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
转换为数字格式
Original:
Conversions to numeric formats
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
字符串操作
Original:
String manipulation
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
strcpy
strncpy
strcat
strncat
strxfrm
字符串检查
Original:
String examination
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
内存操作
Original:
Memory manipulation
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
memchr
memcmp
memset
memcpy
memmove
杂项
Original:
Miscellaneous
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
strerror
 
Defined in header <string.h>
const void* memchr( const void* ptr, int ch, size_t count );
      void* memchr(       void* ptr, int ch, size_t count );
ch,并找到该值在第一次出现的的初始unsigned char字符(每个解释为count)的对象所指向的unsigned char转换ptr.
Original:
Converts ch to unsigned char and locates the first occurrence of that value in the initial count characters (each interpreted as unsigned char) of the object pointed to by ptr.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

目录

[编辑] 参数

ptr -
要检查的对象的指针
Original:
pointer to the object to be examined
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
ch -
搜索字符
Original:
character to search for
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
count -
检查的字符数
Original:
number of characters to examine
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

[编辑] 返回值

如果没有这样的字符的指针的位置的字符,或NULL发现.
Original:
Pointer to the location of the character, or NULL if no such character is found.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

[编辑] 为例

[编辑] 另请参阅

找到第一个出现的字符
Original:
finds the first occurrence of a character
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(函数) [edit]