Operating function, the function library is string.h, mem.hmem ... operation storage array void * Memccpy (void * destin, void * source, unsigned char ch, unsigned n) void * Memchr (void * s, char ch, unsigned N) Void * Memcmp (Void * S1, Void * S2, Unsigned N) int MemicMP (Void * S1, Void * S2, Unsigned N) Void * Memmove (Void * Destin, Void * Source, unsigned n) void * Memcpy Void * Destin, Void * Source, unsigned n) Void * MemSet (Void * s, char ch, unsigned n) These functions, all members of the MEM ... series operate in stores. In all of these functions, arrays are n words. Different. MeMCPY Copys a n-byte block to Destin from Source. If the source block and the target block are overlapped, select the copy direction, and correctly copy the overlay byte. MEMMOVE is the same. MEMSET All. MEMSET The byte is placed in byte CH. The length of the array is given by n. MEMCMP is exactly the two strings S1 and S2 of the N-byte length. Some functions are comparing bytes, so MEMCMP (" 0xFF "," / x7f ", 1) The return value is greater than 0.MEMICMP compares the first n bytes of S1 and S2, regardless of the character override or lowercase .Memccpy Copy byte from Source Copy bytes to Destin. Copying the following one Situation: (1) Character CH Preferred Copy to Destin. (2) N-byte The first n bytes of the destin.Memchr Retrieve the S array in the character CH. Return Value: Memmove and Memcpy Return to Destin Memset Returns S Value Memcmp and Memicmp─ ┬─ If S1
Void MoveData (int SEGSRC, INT OFFFSRC, int SEGDEST, INT OFFDEST, Unsigned NumBytes) This function copies the NumBytes by the source address (segsrc: offsrc) to the target address (SEGDEST: OFFDEST) VOID MOVEMEM (Void * Source, Void * Destin, unsigned len This function copies a long LEN byte data from Source to Destin. If the source address and the target address string are overlap, select the copy direction in order to correctly copy the data .void setmem (void * Addr, int LEN, CHAR VALUE This function places the first byte of the block referred to in the ADDR in byte Value.