sortlocon(3)

sortlocon3

Sort the logical connectors of a figure by name

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

Overview

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.

Examples

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

Releases

4 releases since Debian 7 (Wheezy); the text changed 1 time.

  1. 7–8
  2. 9–10

From alliance 5.1.1-3 in Debian 10 (Buster). Parsed by carta from the page's man source.