Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
SORTLOCON(3)		     MBK LOGICAL FUNCTIONS		  SORTLOCON(3)

NAME
       sortlocon - sort	the logical connectors of a figure by name

SYNOPSIS
       #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  *connec-
       tors.  The connectors are sorted	by names, using	a numerical comparison
       function	that ensures x_12 > x_2.
       The  standard  qsort(3) function	library	is called for sorting.	There-
       fore, a table the number	of connectors wide is created.	 This  is  not
       very  memory  consuming since the number	of connectors in a circuit in-
       terface 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).

ASIM/LIP6			October	1, 1997			  SORTLOCON(3)

Want to link to this manual page? Use this URL:
<https://man.freebsd.org/cgi/man.cgi?query=sortlocon&sektion=3&manpath=FreeBSD+Ports+15.0>

home | help