swapchars
Description:
Function swapchars rearranges the cell bytes in reverse order.
This function name starts with a lowercase letter. |
Parameters:
(c)
int | c | The value whose bytes need to be swapped. |
Return Values:
The value of the argument with bytes rearranged in reverse order (that is, so that the very first byte becomes the last).
Examples:
main() { // Вывод: "swapchars(0x11223344): 0x44332211" new n = 0x11223344; printf("swapchars(0x%08x): 0x%08x", n, swapchars(n)); }