Skip to content

AFNI/NIfTI Server

Sections
Personal tools
You are here: Home » AFNI » Documentation

Doxygen Source Code Documentation


Main Page   Alphabetical List   Data Structures   File List   Data Fields   Globals   Search  

thd_zblock.c File Reference

#include "mrilib.h"
#include "thd.h"

Go to the source code of this file.


Functions

void THD_zblock (int nch, char *ch)
void THD_unzblock (int nch, char *ch)

Function Documentation

void THD_unzblock int    nch,
char *    ch
 

Definition at line 26 of file thd_zblock.c.

References ZBLOCK.

Referenced by THD_dblkatr_from_niml(), THD_read_all_atr(), and THD_write_atr().

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 }

void THD_zblock int    nch,
char *    ch
 

Definition at line 15 of file thd_zblock.c.

References ZBLOCK.

Referenced by THD_nimlize_dsetatr(), and THD_write_atr().

00016 {
00017    int ii ;
00018    if( nch <= 0 ) return ;
00019 
00020    for( ii=0 ; ii < nch ; ii++ ){
00021      if( ch[ii] == ZBLOCK ) ch[ii] = '*' ;  /* irreversible */
00022      if( ch[ii] == '\0'   ) ch[ii] = ZBLOCK ;
00023    }
00024 }
 

Powered by Plone

This site conforms to the following standards: