home *** CD-ROM | disk | FTP | other *** search
- /* Sample of "sort.o", linked with sort.o
- By SAKU */
- #include <stdio.h>
- #include "sort.h"
-
- unsigned short int data[16] = { 15, 213, 12, 12, 0, 66, 7, 5, 9, 811, 14, 3, 91, 8, 24, 10 };
-
-
- void main()
- {
- int i,table[16];
-
- sort( SORT_SHELL, SORT_SHORT, data, 16, table );
-
- printf( "src res\n" );
- for( i=0; i<16; i++ )
- printf( "%3d %3d\n", *(data+i), *(data+table[i]) );
-
- return;
- }