209 int i,n,found,nletters,nlett = 0;
214 if(command[0] ==
'$')
221 if((command[0]==
'!') ||
235 if((n=
blMatch(command,(keywords[i]).name,&nletters))==1)
253 if((keywords[found]).
string)
255 for(i=0; i<(keywords[found]).nparam; i++)
258 if((nletters =
blGetString(command,strparam[i]))==0)
268 for(i=0; i<(keywords[found]).nparam; i++)
271 if(!
blGetParam(command,&(floatparam[i]),&nletters))
313 string1 = (
char *)malloc((strlen(comstring) + 2) *
sizeof(char));
314 if(string1 ==
NULL)
return(0);
320 if((!string1[i])||(string1[i]==
' '))
326 if((!string2[i])||(string2[i]==
' '))
332 if(string1[i] != string2[i])
370 inv_commas = !inv_commas;
379 ||(command[i]==
'\0'))
break;
384 if((command[i]==
' ') && (!inv_commas))
break;
387 strparam[j++] = command[i];
422 retval = sscanf(buffer,
"%lf",value);
455 int i,n,found,nletters,nlett=0;
460 if(command[0] ==
'$')
467 if((command[0]==
'!') ||
480 if((n=
blMatch(command,(keywords[i]).name,&nletters))==1)
502 if((keywords[found]).
string)
504 for(i=0; i<(keywords[found]).maxparam; i++)
507 if((nletters =
blGetString(command,strparam[i]))==0)
509 if(i < (keywords[found]).minparam)
524 for(i=0; i<(keywords[found]).maxparam; i++)
527 if(!
blGetParam(command,&(floatparam[i]),&nletters))
529 if(i < (keywords[found]).minparam)
void blStringToUpper(char *string1, char *string2)
Include file for the command parser.
char * blKillLeadSpaces(char *string)
int blParse(char *comline, int nkeys, KeyWd *keywords, REAL *floatparam, char **strparam)
int blGetParam(char *command, REAL *value, int *nletters)
int blMatch(char *comstring, char *string2, int *nletters)
int blMparse(char *comline, int nkeys, MKeyWd *keywords, REAL *floatparam, char **strparam, int *nparam)
int blGetString(char *command, char *strparam)
Header file for general purpose routines.
System-type variable type definitions.
Type definitions for maths.