Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

reverse(3) [debian man page]

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)

Check Out this Related Man Page

APPEND(3)						       MBK UTILITY FUNCTIONS							 APPEND(3)

NAME
append - append a chain_list to an other chain_list 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 *append(pt1, pt2) chain_list *pt1,*pt2; PARAMETERS
pt1 Pointer to a chain_list pt2 Pointer to a chain_list DESCRIPTION
append appends the contains of the chain_list pointed to by pt2 at the end of the one pointed to by pt1. The lists consistency is warranted by the use of the adequat add functions. RETURN VALUE
append returns a pointer to the new head of list. If pt1 is not NULL, it has the value of pt1, else it is pt2. EXAMPLE
#include "mut.h" #include "mlo.h" void sig_names(s0, s1) losig_list *s0, *s1; { s0->NAMECHAIN = append(s0->NAMECHAIN, s1->NAMECHAIN); } 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 APPEND(3)
Man Page

12 More Discussions You Might Find Interesting

1. IP Networking

reverse lookup for email

when we send email or try to telnet to a site that requires reverse lookup to be enabled the connection is refused. i have the O'Reilly book DNS and Bind and in it are examples of what the reverse zone file should look like. i don't see a line that defines an email server in the example. is... (1 Reply)
Discussion started by: Westy564
1 Replies

2. IP Networking

reverse lookup file problem

I'm trying to create a reverse lookup file. Below are the error messages I get in the messages file, when I start named. Below the error messages is a copy of the reverse lookup file I'm trying to use. I'm using Bind version 8.1.2. Would someone recommend the correct values and if you see any... (2 Replies)
Discussion started by: Westy564
2 Replies

3. UNIX for Dummies Questions & Answers

How to reverse engineer directories

Hi, I need to reverse engineer certain directories so I can create the exact directory structure in another machine. How do I go about doing that? Thanks in advance for your help. JTrinh (1 Reply)
Discussion started by: Jtrinh
1 Replies

4. Shell Programming and Scripting

how to reverse file

i am using AIX -ksh how can i reverse any file ,i have already try tac cmd it is not in AIX: please help me out. (3 Replies)
Discussion started by: RahulJoshi
3 Replies

5. UNIX for Advanced & Expert Users

dnsstuff says no reverse dns in place, but there is!

Folks...have just stumbled on an issue where DNSstuff says there is no reverse dns in place when there is...as evidenced by a reverse check from 3 diff networks. Any advice why this would be happening (DNSstuff-wise) would be appreciated. Jordan: jsd@standby:~$ host 12.177.133.70... (3 Replies)
Discussion started by: jsd
3 Replies

6. UNIX for Dummies Questions & Answers

How to print arguments in reverse order?

Hey all, How do I make a script print its arguments in reverse order? Thanks (5 Replies)
Discussion started by: unclepickle1
5 Replies

7. UNIX for Dummies Questions & Answers

printing fields in reverse order

command/script(apart from awk) to print the fields in reverse order that is last field has to come first and so on and first field has to go last Input store-id date sale ............. ............. ... (3 Replies)
Discussion started by: tsurendra
3 Replies

8. UNIX for Dummies Questions & Answers

reverse first field from the file

Hi all, I have a file named file1as 07/25 00:10 d327490 07/25 00:55 d378299 07/25 03:58 d378299 07/25 06:14 d642035 07/25 12:44 c997126 and now i want to reverse the first filed ie 07/25 as 25/07 00:10 d327490 25/07 00:55 d378299 25/07 03:58 d378299 25/07 06:14 d642035 25/07... (5 Replies)
Discussion started by: zozoo
5 Replies

9. Programming

String pointer does not work

Hello, I am trying to reverse complement one string and reverse another (NO complement!), both with pointer. My code compiled without error, but did not do the job I wanted. #include <stdio.h> #include <stdlib.h> #include <zlib.h> #include "kseq.h" // STEP 1: declare the type of file... (5 Replies)
Discussion started by: yifangt
5 Replies

10. Programming

How to reverse a linked list by traversing only once.?

Program to reverse a linked list by traversing only once. (1 Reply)
Discussion started by: VSSajjan
1 Replies

11. Programming

Segmentation fault when I pass a char pointer to a function in C.

I am passing a char* to the function "reverse" and when I execute it with gdb I get: Program received signal SIGSEGV, Segmentation fault. 0x000000000040083b in reverse (s=0x400b2b "hello") at pointersExample.c:72 72 *q = *p; Attached is the source code. I do not understand why... (9 Replies)
Discussion started by: jose_spain
9 Replies

12. UNIX for Beginners Questions & Answers

Reverse content

I have file and need to reverse the contents: cat filename 2345 AXY 34567 Output expects 34567 AXY 2345 (1 Reply)
Discussion started by: Maayi
1 Replies