--- imach/src/imach.c 2017/04/18 16:48:12 1.262 +++ imach/src/imach.c 2017/04/24 15:23:15 1.263 @@ -1,6 +1,9 @@ -/* $Id: imach.c,v 1.262 2017/04/18 16:48:12 brouard Exp $ +/* $Id: imach.c,v 1.263 2017/04/24 15:23:15 brouard Exp $ $State: Exp $ $Log: imach.c,v $ + Revision 1.263 2017/04/24 15:23:15 brouard + Summary: to save + Revision 1.262 2017/04/18 16:48:12 brouard *** empty log message *** @@ -988,12 +991,12 @@ typedef struct { #define ODIRSEPARATOR '\\' #endif -/* $Id: imach.c,v 1.262 2017/04/18 16:48:12 brouard Exp $ */ +/* $Id: imach.c,v 1.263 2017/04/24 15:23:15 brouard Exp $ */ /* $State: Exp $ */ #include "version.h" char version[]=__IMACH_VERSION__; char copyright[]="February 2016,INED-EUROREVES-Institut de longevite-Japan Society for the Promotion of Science (Grant-in-Aid for Scientific Research 25293121), Intel Software 2015-2018"; -char fullversion[]="$Revision: 1.262 $ $Date: 2017/04/18 16:48:12 $"; +char fullversion[]="$Revision: 1.263 $ $Date: 2017/04/24 15:23:15 $"; char strstart[80]; char optionfilext[10], optionfilefiname[FILENAMELENGTH]; int erreur=0, nberr=0, nbwarn=0; /* Error number, number of errors number of warnings */ @@ -10080,9 +10083,12 @@ int main(int argc, char *argv[]) break; } if((num_filled=sscanf(line,"model=1+age%[^.\n]", model)) !=EOF){ - if (num_filled == 0) - model[0]='\0'; - else if (num_filled != 1){ + if (num_filled == 0){ + printf("ERROR %d: Model should be at minimum 'model=1+age.' WITHOUT space:'%s'\n",num_filled, line); + fprintf(ficlog,"ERROR %d: Model should be at minimum 'model=1+age.' WITHOUT space:'%s'\n",num_filled, line); + model[0]='\0'; + goto end; + } else if (num_filled != 1){ printf("ERROR %d: Model should be at minimum 'model=1+age.' %s\n",num_filled, line); fprintf(ficlog,"ERROR %d: Model should be at minimum 'model=1+age.' %s\n",num_filled, line); model[0]='\0';