Unix and Linux Discussions Tagged with reverse |
|
Thread / Thread Starter |
Last Post |
Replies |
Views |
Forum |
|
|
|
6 |
3,123 |
UNIX for Beginners Questions & Answers |
|
|
|
1 |
1,914 |
UNIX for Beginners Questions & Answers |
|
|
|
17 |
4,528 |
Shell Programming and Scripting |
|
|
|
7 |
3,317 |
Shell Programming and Scripting |
|
|
|
2 |
2,978 |
Shell Programming and Scripting |
|
|
|
0 |
2,836 |
UNIX for Dummies Questions & Answers |
|
|
|
3 |
15,026 |
UNIX for Dummies Questions & Answers |
|
|
|
5 |
11,053 |
Shell Programming and Scripting |
|
|
|
4 |
24,336 |
Shell Programming and Scripting |
|
|
|
0 |
928 |
Software Releases - RSS News |
|
|
|
0 |
833 |
Software Releases - RSS News |
|
|
|
0 |
782 |
Software Releases - RSS News |
|
|
|
3 |
10,281 |
Shell Programming and Scripting |
|
|
|
0 |
858 |
Software Releases - RSS News |
|
|
|
0 |
786 |
Software Releases - RSS News |
|
|
|
3 |
12,463 |
Shell Programming and Scripting |
|
|
|
0 |
817 |
Software Releases - RSS News |
|
|
|
7 |
116,128 |
UNIX for Dummies Questions & Answers |
|
|
|
0 |
757 |
Software Releases - RSS News |
|
|
|
2 |
3,205 |
UNIX for Advanced & Expert Users |
|
|
|
7 |
8,748 |
UNIX for Advanced & Expert Users |
|
|
|
0 |
752 |
Software Releases - RSS News |
|
|
|
0 |
628 |
Software Releases - RSS News |
|
|
|
0 |
759 |
Software Releases - RSS News |
|
|
|
0 |
709 |
Software Releases - RSS News |
|
|
|
0 |
687 |
Software Releases - RSS News |
|
|
|
1 |
3,214 |
Shell Programming and Scripting |
|
|
|
4 |
3,053 |
Shell Programming and Scripting |
|
|
|
0 |
4,893 |
UNIX for Advanced & Expert Users |
|
|
|
0 |
740 |
Software Releases - RSS News |
|
|
|
0 |
779 |
Software Releases - RSS News |
|
|
|
0 |
670 |
Software Releases - RSS News |
|
|
|
0 |
767 |
Software Releases - RSS News |
|
|
|
0 |
722 |
Software Releases - RSS News |
|
|
|
0 |
698 |
Software Releases - RSS News |
|
|
|
7 |
6,263 |
Shell Programming and Scripting |
|
|
|
0 |
750 |
Software Releases - RSS News |
|
|
|
1 |
6,234 |
Shell Programming and Scripting |
|
|
|
0 |
3,986 |
UNIX for Advanced & Expert Users |
|
|
|
4 |
23,842 |
Shell Programming and Scripting |
REVERSE(3) MBK UTILITY FUNCTIONS REVERSE(3)
NAME
reverse - reverse a list of chained elements
ORIGIN
This 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.fr
SYNOPSYS
#include "mut.h"
chain_list *reverse(ptold)
chain_list *ptold;
PARAMETER
ptold Pointer to a chain_list to be reversed
DESCRIPTION
The 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 VALUE
reverse 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 ALSO
mbk(1), chain(3).
BUG REPORT
This 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)