Doxygen Source Code Documentation
Main Page Alphabetical List Data Structures File List Data Fields Globals Search
thd_zblock.c
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007 #include "mrilib.h"
00008 #include "thd.h"
00009
00010
00011
00012
00013
00014
00015 void THD_zblock( int nch , char *ch )
00016 {
00017 int ii ;
00018 if( nch <= 0 ) return ;
00019
00020 for( ii=0 ; ii < nch ; ii++ ){
00021 if( ch[ii] == ZBLOCK ) ch[ii] = '*' ;
00022 if( ch[ii] == '\0' ) ch[ii] = ZBLOCK ;
00023 }
00024 }
00025
00026 void THD_unzblock( int nch , char *ch )
00027 {
00028 int ii ;
00029 if( nch <= 0 ) return ;
00030
00031 for( ii=0 ; ii < nch ; ii++ )
00032 if( ch[ii] == ZBLOCK ) ch[ii] = '\0' ;
00033
00034 ch[nch-1] = '\0' ;
00035 }