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  

mri_add_name.c File Reference

#include "mrilib.h"
#include <string.h>

Go to the source code of this file.


Functions

void mri_add_name (char *str, MRI_IMAGE *im)
void mri_add_fname_delay (char *str, MRI_IMAGE *im)

Function Documentation

void mri_add_fname_delay char *    str,
MRI_IMAGE   im
 

Definition at line 34 of file mri_add_name.c.

References ENTRY, MRI_IMAGE::fname, free, and malloc.

Referenced by mri_read_3D_delay().

00035 {
00036    int ll ;
00037 
00038 ENTRY("mri_add_fname_delay") ;
00039 
00040    if( im == NULL ) EXRETURN ;  /* 29 Mar 2002 */
00041 
00042    if( im->fname != NULL ){ free( im->fname ) ; im->fname = NULL ; }
00043 
00044    if( str == NULL ) EXRETURN ;
00045 
00046    ll = strlen(str) ; if( ll <= 0 ) EXRETURN ;
00047 
00048    im->fname = (char *) malloc( ll+1 ) ;
00049    strcpy( im->fname , str ) ;
00050    EXRETURN ;
00051 }

void mri_add_name char *    str,
MRI_IMAGE   im
 

Definition at line 15 of file mri_add_name.c.

References ENTRY, free, malloc, and MRI_IMAGE::name.

Referenced by DSETN_func(), GRA_refwrite_choose_CB(), MAIN_workprocess(), mri_read(), mri_read3D_analyze75(), mri_read_3A(), mri_read_3D(), mri_read_3D_delay(), mri_read_analyze75(), mri_read_ascii(), mri_read_ascii_ragged(), mri_read_ge4(), mri_read_many_nsize(), mri_read_nsize(), mri_read_ppm(), mri_read_ppm3(), mri_read_siemens(), mri_read_stuff(), niml_to_mri(), PLUTO_register_timeseries(), process_NIML_MRI_IMAGE(), RCREND_accum_lab_CB(), RCREND_draw_CB(), RCREND_imseq_getim(), THD_fetch_1D(), and THD_get_all_timeseries().

00016 {
00017    int ll ;
00018 
00019 ENTRY("mri_add_name") ;
00020    if( im == NULL ) EXRETURN ;  /* 29 Mar 2002 */
00021 
00022    if( im->name != NULL ){ free( im->name ) ; im->name = NULL ; }
00023 
00024    if( str == NULL ) EXRETURN ;
00025 
00026    ll = strlen(str) ; if( ll <= 0 ) EXRETURN ;
00027 
00028    im->name = (char *) malloc( ll+1 ) ;
00029    strcpy( im->name , str ) ;
00030    EXRETURN ;
00031 }
 

Powered by Plone

This site conforms to the following standards: