Server for Information Technologies ������ ��������������
������� �������������� ����������
(095) 932-9212, 932-9213, 939-0783
E-mail: [email protected]
������ �������� ����(!) ������������� ���������� CIT Forum CD-ROM

QSORT(3C)

��������
qsort - ������� ����������

���������

	void qsort ((char *) base, nel, sizeof (*base), compar)
	unsigned int nel;
	int (*compar) ( );

��������
��������� qsort ��������� �������� ������� ���������� ������� ������ �� ����� �����.

�������� base �������� ���������� �� ������ �������. Nel - ����� ��������� � �������. Compar - ������� ���������, ����������� ������� ��� ������ ������ ��� ��������� �� ������������ ��������. � ������������ � ���, ����� ����� ����� ��� ����������: ������� ����, ������ ���� ��� ������� ����, ������ �������� ��������� �������, ������ ��� ������� �� ��������� �� �������.

����������
��������� �� ������ ������� ������ ����� ��� "��������� �� �������" � ����������������� � ���� "��������� �� ������".

� ���������, �������������� �������� compar, �� ����������� ������ ����������� ������ ����, ������� �������� ������� � ���������� � ������������ ��������� ����� ��������� ������������ ������.

�������, � ����� �������� ����� ���������� ��� ��������, ����������� ������� ��� ���������, �������������.

��. �����
bsearch(3C), lsearch(3C), string(3C).
sort(1) � ����������� ������������
Comments: [email protected]
Designed by Andrey Novikov
Copyright © CIT