memrev man page on DragonFly

Man page or keyword search:  
man Server   44335 pages
apropos Keyword Search (all sections)
Output format
DragonFly logo
[printable version]

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

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(3)
[top]

List of man pages available for DragonFly

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net