Query: memrev
OS: debian
Section: 3pub
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
MEMREV(3pub) C Programmer's Manual MEMREV(3pub)NAMEmemrev - reverse an array in placeSYNOPSIS#include <publib.h> void *memrev(void *block, size_t elsize, size_t elnum);DESCRIPTIONmemrev will reverse an array, by swapping the contents of its elements.RETURN VALUEmemrev returns its first argument.EXAMPLETo 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 ALSOpublib(3), strrev(3), memshuffle(3)AUTHORLars Wirzenius (lars.wirzenius@helsinki.fi) Publib C Programmer's Manual MEMREV(3pub)
| Related Man Pages |
|---|
| ba_clear_all(3pub) - debian |
| dynarr_free(3pub) - debian |
| dynarr_resize(3pub) - debian |
| memshuffle(3pub) - debian |
| strmaxcpy(3pub) - debian |
| Similar Topics in the Unix Linux Community |
|---|
| Is UNIX an open source OS ? |
| A (ksh) Library For and From UNIX.com |
| New UNIX and Linux History Sections |
| My first PERL incarnation... Audio Oscillograph |