Doxygen Source Code Documentation
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
|
||||||||||||
|
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 }
|
|
||||||||||||