GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  SORTLOCON (3)

[Include document man1/alc_contents.mac]

   sortlocon    sortlocon

NAME

sortlocon - sort the logical connectors of a figure by name

[Include document man1/alc_origin.1]

CONTENTS

Synopsys
Parameters
Description
Example
See Also

SYNOPSYS






#include "mlo.h"
void sortlocon(connectors)
locon_list **connectors;


PARAMETERS

connectors Pointer to the head of the connector list that is to be sorted

DESCRIPTION

sortlocon sorts the list of logical connectors pointed to by *connectors. The connectors are sorted by names, using a numerical comparison function that ensures x_12 > x_2.
The standart qsort(3) function library is called for sorting. Therefore, a table the number of connectors wide is created. This is not very memory consuming since the number of connectors in a circuit interface is quite small, nor very time consuming since this algorithm runs in a n log n time.

EXAMPLE






#include "mlo.h"
void savesorted(figname)
char *figname;
{
lofig_list *figure = getlocon(figname, ’A’);
  sortlocon(&figure->LOCON);
  sortlosig(&figure->LOSIG);
  savelofig(figure);
}


SEE ALSO

mbk(1), locon(3), addlocon(3), dellocon(3), checkloconorder(3), qsort(3).

[Include document man1/alc_bug_report.1]

Search for    or go to Top of page |  Section 3 |  Main Index


ASIM/LIP6 SORTLOCON (3) October 1, 1997

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.