5#include "tpcclibConfig.h"
18 if(filename==NULL)
return;
19 char basename[FILENAME_MAX];
24 if(strcasecmp(cptr,
".hdr")==0) *cptr=(char)0;
25 else if(strcasecmp(cptr,
".nii")==0) *cptr=(char)0;
26 else if(strcasecmp(cptr,
".img")==0) *cptr=(char)0;
27 else if(strcasecmp(cptr,
".sif")==0) *cptr=(char)0;
28 else if(strcasecmp(cptr,
".")==0) *cptr=(char)0;
33 if(strcasecmp(cptr,
".nii")==0) *cptr=(char)0;
34 else if(strcasecmp(cptr,
".img")==0) *cptr=(char)0;
35 else if(strcasecmp(cptr,
".")==0) *cptr=(char)0;
37 strcpy(filename, basename);
char * filenameGetExtension(const char *s)
Get the last extension of a file name.
void niftiBasename(char *filename)
int strncpyCleanSpaces(char *s1, const char *s2, int maxlen)
Header file for libtpcnifti.