home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Graphics Plus
/
Graphics Plus.iso
/
general
/
fractal
/
kaos.lha
/
execlib
/
decode_input_string.c
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
NeXTSTEP
RISC OS/Acorn
UTF-8
Wrap
C/C++ Source or Header
|
1989-12-12
|
319 b
|
23 lines
/*
### decode input s from a panel text item ###
NOte: Decode an executable s replacing ^ with a white space
*/
#include <stdio.h>
void decode_input_string(s,t)
char s[],t[];
{
int i;
if(t!= NULL){
i=0;
while(t[i] != '\0'){
if(t[i] == '^')
s[i]=' ';
else
s[i]=t[i];
i++;
}
s[i] = '\0';
}
}