@@ -77,7 +77,7 @@ static const char * g_history[] =
7777 "\n" ,
7878 "1.1 14 January 2005 [rickr]\n"
7979 " - changed all non-error/non-debug output from stderr to stdout\n"
80- " note: creates a mis-match between normal output and debug messages\n"
80+ " note: creates a mismatch between normal output and debug messages\n"
8181 " - modified act_diff_hdrs and act_diff_nims to do the processing in\n"
8282 " lower-level functions\n" ,
8383 " - added functions diff_hdrs, diff_hdrs_list, diff_nims, diff_nims_list\n"
@@ -229,7 +229,7 @@ int main( int argc, char * argv[] )
229229 if ((opts .swap_hdr || opts .swap_ana || opts .swap_old )
230230 && ((rv = act_swap_hdrs (& opts )) != 0 ) ) FREE_RETURN (rv );
231231
232- /* if a diff, return wither a difference exists (like the UNIX command) */
232+ /* if a diff, return whether, a difference exists (like the UNIX command) */
233233 if ( opts .diff_hdr && ((rv = act_diff_hdrs (& opts )) != 0 ) ) FREE_RETURN (rv );
234234 if ( opts .diff_nim && ((rv = act_diff_nims (& opts )) != 0 ) ) FREE_RETURN (rv );
235235
@@ -341,7 +341,7 @@ int process_opts( int argc, char * argv[], nt_opts * opts )
341341 for ( index = 1 ; index < 8 ; index ++ )
342342 {
343343 ac ++ ;
344- CHECK_NEXT_OPT_MSG (ac ,argc ,"-cci" ,"7 dimension values are requred " );
344+ CHECK_NEXT_OPT_MSG (ac ,argc ,"-cci" ,"7 dimension values are required " );
345345 if ( ! isdigit (argv [ac ][0 ]) && strcmp (argv [ac ],"-1" ) ){
346346 fprintf (stderr ,"** -cci param %d (= '%s') is not a valid\n"
347347 " consider: 'nifti_tool -help'\n" ,index ,argv [ac ]);
@@ -385,7 +385,7 @@ int process_opts( int argc, char * argv[], nt_opts * opts )
385385 {
386386 ac ++ ;
387387 CHECK_NEXT_OPT_MSG (ac ,argc ,"-disp_ci" ,
388- "7 dimension values are requred " );
388+ "7 dimension values are required " );
389389 if ( ! isdigit (argv [ac ][0 ]) && strcmp (argv [ac ],"-1" ) ){
390390 fprintf (stderr ,"** -disp_ci param %d (= '%s') is not a valid\n"
391391 " consider: 'nifti_tool -help'\n" ,index ,argv [ac ]);
@@ -404,7 +404,7 @@ int process_opts( int argc, char * argv[], nt_opts * opts )
404404 for ( index = 1 ; index <= 3 ; index ++ )
405405 {
406406 ac ++ ;
407- CHECK_NEXT_OPT_MSG (ac ,argc ,"-dts" ,"i,j,k indices are requied \n" );
407+ CHECK_NEXT_OPT_MSG (ac ,argc ,"-dts" ,"i,j,k indices are required \n" );
408408 if ( ! isdigit (argv [ac ][0 ]) ){
409409 fprintf (stderr ,"** -dts param %d (= '%s') is not a number\n"
410410 " consider: 'nifti_tool -help'\n" ,index ,argv [ac ]);
@@ -460,7 +460,7 @@ int process_opts( int argc, char * argv[], nt_opts * opts )
460460 for ( index = 0 ; index < 8 ; index ++ )
461461 {
462462 ac ++ ;
463- CHECK_NEXT_OPT_MSG (ac ,argc ,"-new_dim" ,"8 dim values are requred " );
463+ CHECK_NEXT_OPT_MSG (ac ,argc ,"-new_dim" ,"8 dim values are required " );
464464 if ( ! isdigit (argv [ac ][0 ]) && strcmp (argv [ac ],"-1" ) ){
465465 fprintf (stderr ,"** -new_dim param %d (= '%s') is not a valid\n"
466466 " consider: 'nifti_tool -help'\n" ,index ,argv [ac ]);
@@ -1061,7 +1061,7 @@ int use_full(const char * prog )
10611061 " nifti_tool -check_hdr -infiles dset0.nii dset1.nii\n"
10621062 " nifti_tool -check_hdr -infiles *.nii *.hdr\n"
10631063 " \n"
1064- " e.g. add the -quiet option, so that only errros are reported\n"
1064+ " e.g. add the -quiet option, so that only errors are reported\n"
10651065 " nifti_tool -check_hdr -quiet -infiles *.nii *.hdr\n"
10661066 "\n" );
10671067 printf (
@@ -2581,7 +2581,7 @@ int act_mod_hdrs( nt_opts * opts )
25812581 }
25822582 if ( opts -> keep_hist && nifti_add_extension (nim , opts -> command ,
25832583 strlen (opts -> command ), NIFTI_ECODE_COMMENT ) )
2584- fprintf (stderr ,"** failed to add command to image as exten \n" );
2584+ fprintf (stderr ,"** failed to add command to image as extension \n" );
25852585 if ( nifti_set_filenames (nim , opts -> prefix , 1 , 1 ) )
25862586 {
25872587 NTL_FERR (func ,"failed to set prefix for new file: " ,opts -> prefix );
@@ -2696,7 +2696,7 @@ int act_swap_hdrs( nt_opts * opts )
26962696 }
26972697 if ( opts -> keep_hist && nifti_add_extension (nim , opts -> command ,
26982698 strlen (opts -> command ), NIFTI_ECODE_COMMENT ) )
2699- fprintf (stderr ,"** failed to add command to image as exten \n" );
2699+ fprintf (stderr ,"** failed to add command to image as extension \n" );
27002700 if ( nifti_set_filenames (nim , opts -> prefix , 1 , 1 ) )
27012701 {
27022702 NTL_FERR (func ,"failed to set prefix for new file: " ,opts -> prefix );
@@ -4067,7 +4067,7 @@ nifti_image * nt_image_read( nt_opts * opts, const char * fname, int doread )
40674067 return nifti_image_read (fname , doread );
40684068 }
40694069
4070- /* so generate an emtpy image */
4070+ /* so generate an empty image */
40714071 if (g_debug > 1 ) {
40724072 fprintf (stderr ,"+d NT_IR: generating EMPTY IMAGE from %s...\n" ,fname );
40734073 if (g_debug > 2 ) {
@@ -4106,7 +4106,7 @@ nifti_1_header * nt_read_header(nt_opts * opts, const char * fname, int * swappe
41064106 return nifti_read_header (fname , swapped , check );
41074107 }
41084108
4109- /* so generate an emtpy image */
4109+ /* so generate an empty image */
41104110 if (g_debug > 1 ) {
41114111 fprintf (stderr ,"+d NT_RH: generating EMPTY IMAGE from %s...\n" ,fname );
41124112 if (g_debug > 2 ) {
@@ -4149,7 +4149,7 @@ nifti_image * nt_read_bricks(nt_opts * opts, const char * fname, int len, int *
41494149 return nifti_image_read_bricks (fname , len , list , NBL );
41504150 }
41514151
4152- /* so generate an emtpy image */
4152+ /* so generate an empty image */
41534153 if (g_debug > 1 ) {
41544154 fprintf (stderr ,"+d NT_RB: generating EMPTY IMAGE from %s...\n" ,fname );
41554155 if (g_debug > 2 ) {
0 commit comments