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
SORTLOSIG(3) MBK LOGICAL FUNCTIONS SORTLOSIG(3)

sortlosig - sort the logical signals of a figure by name
See the file man1/alc_origin.1.

#include "mlo.h"
void sortlosig(signals)
losig_list ∗∗signals;

∗∗signals
Pointer to the head of the list of signals that is to be sorted

sortlosig sorts the list of signals pointed to by signals. The signals are sorted by names, but since names are not the signals identifier, the getsigname(3) routine is called to retrieve a signal name.
 
The standart qsort(3) function library is called for sorting. Therefore, a table the number of signal wide is created, requiring a lot of memory with big circuits. Also, even if qsort(3) runs in n log n time, getsigname(3) is called twice, and the natural comparison function once, and this is quite time consuming with big circuits. It is recommended to use this function only if needed.

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

mbk(1), losig(3), addlosig(3), dellosig(3), getsigname(3), sortlocon(3), qsort(3).
See the file man1/alc_bug_report.1.
October 1, 1997 ASIM/LIP6

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

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