home *** CD-ROM | disk | FTP | other *** search
/ The C Users' Group Library 1994 August / wc-cdrom-cusersgrouplibrary-1994-08.iso / listings / v_09_06 / phillips.exe / GIN.C < prev    next >
Text File  |  1990-08-18  |  1KB  |  45 lines

  1.  
  2.         /*******************************************************
  3.         *
  4.         *       file d:\cips\gin.c
  5.         *
  6.         *       Functions: This file contains
  7.         *           get_image_name
  8.         *
  9.         *       Purpose - This function prompts the user to enter the
  10.         *            name of an image.
  11.         *
  12.         *       External Calls:
  13.         *           rstring.c - read_string
  14.         *                       clear_buffer
  15.         *
  16.         *       Modifications:
  17.         *           26 September 86 - now uses vision3.h instead of 
  18.         *               vision2.h and the read_string and get_integer
  19.         *               instead of  scanf.
  20.         *           11 March 1987 - this function was removed from the
  21.         *               file ip.c and put in file gin.c.
  22.         *
  23.         ******************************************************/
  24.  
  25.  
  26. #include "d:\cips\cips.h"
  27.  
  28.  
  29.  
  30. get_image_name(name)
  31.  
  32.         char name[];
  33. {
  34.         char response[80];
  35.         printf("\n\nImage name is--%s", name);
  36.         printf("\nDo you want to change this name (Y/N)? _\b");
  37.         clear_buffer(response);
  38.         read_string(response);
  39.         if((response[0] == 'Y') ||
  40.            (response[0] == 'y')){
  41.              printf("\n\nEnter image name\n--");
  42.              read_string(name);
  43.         }
  44. }       /* ends get_image_name  */
  45.