home *** CD-ROM | disk | FTP | other *** search
/ Point Programming 1 / PPROG1.ISO / c / sclib31 / examples / sort.c < prev    next >
Encoding:
C/C++ Source or Header  |  1991-12-31  |  353 b   |  24 lines

  1. #include <scl1.h>
  2.  
  3.     /********************
  4.       SortPointers demo */
  5.  
  6. char *names[]={
  7.      "Mozart",
  8.      "Villa-Lobos",
  9.      "Chopin",
  10.      "Bach",
  11.      "Schubert",
  12.      "Debussy",
  13.      "Albeniz",
  14.      "Beethoven",
  15.      "Falla",0,};
  16.  
  17. main()
  18. {
  19. int i;
  20.  
  21. SortPointers(names);
  22. for(i=0;names[i];++i)
  23.      printf("%s\n",names[i]);
  24. }