Main Page   Class Hierarchy   Data Structures   File List   Data Fields   Globals  

piksrt.c

Go to the documentation of this file.
00001 void piksrt(int n, float arr[])
00002 {
00003         int i,j;
00004         float a;
00005 
00006         for (j=2;j<=n;j++) {
00007                 a=arr[j];
00008                 i=j-1;
00009                 while (i > 0 && arr[i] > a) {
00010                         arr[i+1]=arr[i];
00011                         i--;
00012                 }
00013                 arr[i+1]=a;
00014         }
00015 }

Generated at Sun Feb 24 09:57:11 2002 for STARLAB by doxygen1.2.6 written by Dimitri van Heesch, © 1997-2001