|
NAMEreverse - reverse a list of chained elements See the file man1/alc_origin.1. SYNOPSIS#include "mut.h" chain_list ∗reverse(ptold) chain_list ∗ptold; PARAMETER
DESCRIPTIONThe 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.
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). See the file man1/alc_bug_report.1.
|