Query: reverse
OS: debian
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
REVERSE(3) MBK UTILITY FUNCTIONS REVERSE(3)NAMEreverse - reverse a list of chained elementsORIGINThis software belongs to the ALLIANCE CAD SYSTEM developed by the ASIM team at LIP6 laboratory of Universite Pierre et Marie CURIE, in Paris, France. Web : http://asim.lip6.fr/recherche/alliance/ E-mail : alliance-users@asim.lip6.frSYNOPSYS#include "mut.h" chain_list *reverse(ptold) chain_list *ptold;PARAMETERptold Pointer to a chain_list to be reversedDESCRIPTIONThe reverse function allows to reverse the order of the elements of a chain_list. It means that the last element becomes the first one, the one before the last one the second one, and so on. remark : all mbk structures have for first field the NEXT field, so, with appropriate cast, one can reverse any mbk list. Let's notice that nothing in the C language description demands a structure to be defined in memory the same way its members are defined in C. But all compiler do it this way now a day. Let's hope it will continue!RETURN VALUEreverse returns a pointer to the head of the reversed list.EXAMPLE#include "mut.h" void reverse_con(p) lofig_list *p; { p->LOCON = (locon_list *)reverse((chain_list *)p->LOCON); }SEE ALSOmbk(1), chain(3).BUG REPORTThis tool is under development at the ASIM department of the LIP6 laboratory. We need your feedback to improve documentation and tools.ASIM/LIP6 October 1, 1997 REVERSE(3)
Related Man Pages |
---|
delablexpr(3) - debian |
getablexprdepth(3) - debian |
reverse(3) - debian |
addchain(3) - centos |
addchain(3) - minix |
Similar Topics in the Unix Linux Community |
---|
How to reverse engineer directories |
how to reverse file |
How to print arguments in reverse order? |
String pointer does not work |
Segmentation fault when I pass a char pointer to a function in C. |