Документ взят из кэша поисковой машины. Адрес оригинального документа : http://www.atnf.csiro.au/computing/software/gipsy/sub/sortc.dc2
Дата изменения: Thu Jan 23 17:12:10 1992
Дата индексирования: Fri Jan 16 00:12:15 2009
Кодировка:

Поисковые слова: trees
Subroutine: sortc

Purpose: sort an array with character strings

File: sortc.c

Author: W. Zwitser

Use: SORTC( STR, In/Out character
NUM, In/Out integer
NEL ) Input integer

STR array with strings which is sorted in an alphabetic
order.

NUM array with numbers which correspond with a STR element.
Before the call to SORTC they are initialised from
1...NEL and after the call they give the original
position of each element in the STR array.

NEL number of elements in STR.

Description: SORTC is a so called shellsort and was copied from the second
edition of the C manual of Harbinson & Steele, page 211.

Updates: Apr 27, 1990: WZ, installed

@ subroutine sortc( character,
@ integer,
@ integer )