home *** CD-ROM | disk | FTP | other *** search
/ Graphics Plus / Graphics Plus.iso / general / fractal / kaos.lha / execlib / decode_input_string.c < prev    next >
Encoding:
C/C++ Source or Header  |  1989-12-12  |  319 b   |  23 lines

  1. /*
  2. ### decode input s from a panel text item ###
  3. NOte: Decode an executable s replacing ^ with a white space
  4. */
  5. #include <stdio.h>
  6.  
  7. void decode_input_string(s,t)
  8. char s[],t[];
  9. {
  10.     int i;
  11.     if(t!= NULL){
  12.         i=0;
  13.         while(t[i] != '\0'){
  14.             if(t[i] == '^')
  15.                 s[i]=' ';
  16.             else
  17.                 s[i]=t[i];
  18.             i++;
  19.         }
  20.         s[i] = '\0';
  21.     }
  22. }
  23.