Lines Matching refs:linbuf

1051 static char *linbuf ;  /* must be malloc()-ed before use */  variable
1057 if( str == NULL || str[0] == '\0' ){ linbuf[0] = '\0'; return 0; } in get_linbuf()
1064 if( str[ii] == '\0' ){ linbuf[0] = '\0'; return ii; } /* at end of input */ in get_linbuf()
1078 ; ii++ , jj++ ) linbuf[jj] = str[ii] ; in get_linbuf()
1080 linbuf[jj] = '\0' ; return ii ; in get_linbuf()
1191 fptr = fbuf ; linbuf = (char *) malloc(sizeof(char)*(NLBUF+1)) ; in AFNI_startup_layout_CB()
1202 if( linbuf[0] == '\0' || fptr-fbuf >= nbuf ){ /* didn't find it */ in AFNI_startup_layout_CB()
1205 free(fbuf); free(linbuf); AFNI_splashdown(); EXRETURN; in AFNI_startup_layout_CB()
1207 } while( strncmp(linbuf,"***LAYOUT",9) != 0 ) ; in AFNI_startup_layout_CB()
1209 goslow = (strstr(linbuf,"slow") != NULL) ; /* slow down the startup? */ in AFNI_startup_layout_CB()
1246 if( linbuf[0] == '\0' || ISTARRED(linbuf) ) break ; /* end of layout commands */ in AFNI_startup_layout_CB()
1250 cc = linbuf[0] - 'A' ; in AFNI_startup_layout_CB()
1255 if( linbuf[1] == '\0' ) continue; /* nothing more to do */ in AFNI_startup_layout_CB()
1259 if( isspace(linbuf[1]) ){ in AFNI_startup_layout_CB()
1265 sscanf(linbuf+jj,"%s%n",lword,&nn) ; in AFNI_startup_layout_CB()
1279 } else if( linbuf[1] == '.' && strncmp(linbuf+1,".plugin.",8) != 0 ){ in AFNI_startup_layout_CB()
1284 sscanf(linbuf+jj,"%s%n",lword,&nn) ; in AFNI_startup_layout_CB()
1292 fprintf(stderr,"\n** Illegal LAYOUT sub-window line: %s\n",linbuf) ; in AFNI_startup_layout_CB()
1304 sscanf(linbuf+jj,"%s%n",lword,&nn) ; in AFNI_startup_layout_CB()
1328 sscanf(linbuf+jj,"%s%n",lword,&nn) ; in AFNI_startup_layout_CB()
1345 fprintf(stderr,"\n** Illegal LAYOUT line: %s\n",linbuf) ; in AFNI_startup_layout_CB()
1351 } else if( strncmp(linbuf+1,".plugin.",8) == 0 ){ in AFNI_startup_layout_CB()
1354 char *pname = linbuf+9 ; in AFNI_startup_layout_CB()
1362 fprintf(stderr,"\n** LAYOUT: unknown plugin line: %s\n",linbuf) ; in AFNI_startup_layout_CB()
1376 fprintf(stderr,"\n** LAYOUT: unknown plugin line: %s\n",linbuf) ; in AFNI_startup_layout_CB()
1388 fprintf(stderr,"\n** LAYOUT: 2nd callout for this plugin: %s\n",linbuf) ; in AFNI_startup_layout_CB()
1398 sscanf(linbuf+jj,"%s%n",lword,&nn) ; in AFNI_startup_layout_CB()
1415 fprintf(stderr,"\n** Illegal LAYOUT line: %s\n",linbuf) ; in AFNI_startup_layout_CB()
1421 free(fbuf) ; free(linbuf) ; /* toss the trash */ in AFNI_startup_layout_CB()
1988 fptr = fbuf ; linbuf = (char *) malloc(sizeof(char)*(NLBUF+1)) ; in AFNI_startup_script_CB()
1994 if( linbuf[0] == '\0' || fptr-fbuf >= nbuf ){ free(linbuf); break; } in AFNI_startup_script_CB()
1995 AFNI_driver( linbuf ) ; in AFNI_startup_script_CB()