String_ReverseA
Reverses a zero terminated string in lpszSource and places it in the string buffer pointed to by the lpszDestination parameter. This is the Ansi version of String_Reverse, String_ReverseW is the Unicode version.
String_ReverseA PROTO lpszSource:QWORD, lpszDestination:QWORD
Parameters
lpszSource- The address of the source string.lpszDestination- The address of the destination string buffer.
Returns
Returns a pointer to the destination string in RAX.
Notes
The destination string buffer must be at least the size of the source string buffer, otherwise a read page fault will occur. String_Reverse can reverses a string in a single memory buffer, so it can accept the same address as both the source and destination string.
This function as based on the MASM32 Library function: szRev
See Also