home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / cset21v1.zip / IBMCPP / SAMPLES / COMPILER / SAMPLE03 / SAMPLE03.H < prev    next >
Text File  |  1993-03-15  |  2KB  |  32 lines

  1. /******************************************************************************/
  2. /*                                                                            */
  3. /* Sample Program 03 : SAMPLE03.H                                             */
  4. /*                                                                            */
  5. /* COPYRIGHT:                                                                 */
  6. /* ----------                                                                 */
  7. /* Copyright (C) International Business Machines Corp., 1991, 1993.           */
  8. /*                                                                            */
  9. /* DISCLAIMER OF WARRANTIES:                                                  */
  10. /* -------------------------                                                  */
  11. /* The following [enclosed] code is sample code created by IBM                */
  12. /* Corporation.  This sample code is not part of any standard IBM product     */
  13. /* and is provided to you solely for the purpose of assisting you in the      */
  14. /* development of your applications.  The code is provided "AS IS",           */
  15. /* without warranty of any kind.  IBM shall not be liable for any damages     */
  16. /* arising out of your use of the sample code, even if they have been         */
  17. /* advised of the possibility of such damages.                                */
  18. /*                                                                            */
  19. /******************************************************************************/
  20.  
  21.  
  22. #include <stddef.h>
  23.  
  24. extern size_t nSize;
  25. extern int   *pArray;
  26. extern size_t nSwaps;
  27. extern size_t nCompares;
  28. extern void list( int array[], size_t nNumElements );
  29. extern void bubble( int array[], size_t nNumElements );
  30. extern void insertion( int array[], size_t nNumElements );
  31. extern void selection( int array[], size_t nNumElements );
  32.