memrev(3pub) debian man page | unix.com

Man Page: memrev

Operating Environment: debian

Section: 3pub

MEMREV(3pub)						       C Programmer's Manual						      MEMREV(3pub)

NAME
memrev - reverse an array in place
SYNOPSIS
#include <publib.h> void *memrev(void *block, size_t elsize, size_t elnum);
DESCRIPTION
memrev will reverse an array, by swapping the contents of its elements.
RETURN VALUE
memrev returns its first argument.
EXAMPLE
To reverse an integer array one might do the following. int array[4] = { 1, 2, 3, 4 }; memrev(array, sizeof(array[0]), 4); This will result in the array being { 4, 3, 2, 1 }.
SEE ALSO
publib(3), strrev(3), memshuffle(3)
AUTHOR
Lars Wirzenius (lars.wirzenius@helsinki.fi) Publib C Programmer's Manual MEMREV(3pub)
Related Man Pages
ba_and_ba(3pub) - debian
ba_clear_all(3pub) - debian
ba_copy(3pub) - debian
dynarr_free(3pub) - debian
strcstr(3pub) - debian
Similar Topics in the Unix Linux Community
awk or sed - Convert 2 lines to 1 line
How can I do this in VI editor?
Weird 'find' results
How to copy a column of multiple files and paste into new excel file (next to column)?
New UNIX and Linux History Sections