home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c185 / 1.ddi / FUNCS.EXE / CSCAPE / SOURCE / FNCNTRY.C < prev    next >
Encoding:
C/C++ Source or Header  |  1989-09-07  |  783 b   |  45 lines

  1. /*
  2.     fncntry.c    gam         5/31/89
  3.  
  4.     % declaration of the ocountry_struct
  5.  
  6.     C-scape 3.1
  7.     Copyright (c) 1989 by Oakland Group, Inc.
  8.     ALL RIGHTS RESERVED.
  9.  
  10.     Revision History:
  11.     -----------------
  12.      6/06/89 gam    Created and hooked into date_funcs, sdouble_funcs,
  13.                     double_funcs, yesno_funcs, strcomma, & strdecp.
  14.      8/15/89 gam    Took out #include's of stdio.h and string.h
  15. */
  16.  
  17. #include "fncntry.h"
  18.  
  19. ocountry_struct ocountry = {
  20.     "Yes",
  21.     "No",
  22.     MMDDYY,
  23.     '.',
  24.     ','
  25. };
  26.  
  27. /* Routine used to translate one char to another in a string */
  28.  
  29. char *strtrans(string, letter, replace)
  30.     char      *string;
  31.     char    letter;
  32.     char    replace;
  33. {
  34.     char    *place;
  35.  
  36.     for (place = string; *place; place++) {
  37.         if (*place == letter) {
  38.             *place = replace;
  39.         }
  40.     }
  41.  
  42.     return(string);
  43. }
  44.  
  45.