QuestionWhat does it mean \xFF\x22

Posts 1–3 of 3 · Page 1 of 1
What does it mean \xFF\x22
SomeOne can tell me , what does it mean ?
ForExample:
Code:
memcpy(0x401E48,"\x00\x00",2);
void * memcpy ( void * destination, const void * source, size_t num );
Copy block of memory
Copies the values of num bytes from the location pointed by source directly to the memory block pointed by destination.

The underlying type of the objects pointed by both the source and destination pointers are irrelevant for this function; The result is a binary copy of the data.

The function does not check for any terminating null character in source - it always copies exactly num bytes.

To avoid overflows, the size of the arrays pointed by both the destination and source parameters, shall be at least num bytes, and should not overlap (for overlapping memory blocks, memmove is a safer approach).

-http://www.cplusplus.com/reference/cstring/memcpy/
\x is an escape sequence that tells the compiler to treat the following as hex values..
edit: removed. Yep, like said above --> similar to how hex numbers (your example is a string..it's surrounded by double quotes) are represented by a leading 0x
ex. i = 0x12FF; // (4863 in base 10).
Posts 1–3 of 3 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Talk with us