]>
diplodocus.org Git - nmh/blob - docs/historical/SRI-NOSC/subs.dir/m_getfld.c
5 m_getfld(state
, name
, buf
, bufsz
, iob
)
13 top
: while((c
= getc(iob
)) == '\001' && peekc(iob
) == '\001')
14 while(getc(iob
) != '\n');
25 if(c
== '\n' || c
== '-')
29 if(cp
>= name
+NAMESZ
-1) {
31 printf("??Component Name Exceeds %d Chars:\n \"%s\"\n", NAMESZ
-1, name
);
36 if(c
== '\n' || c
< 0) {
38 printf("??%s Encountered While Scanning for a colon:\n \"%s\"\n",
39 (c
< 0)? "<eof>":"<end of line>", name
);
50 if((c
= getc(iob
)) < 0)
56 if((c
= peekc(iob
)) != ' ' && c
!= '\t')
57 if(c
== '\001' || c
< 0)
62 return(peekc(iob
) < 0? FLDEOF
:FLDPLUS
);
66 while(getc(iob
) != '\n') ;
68 if((c
= getc(iob
)) == '\001' && peekc(iob
) == '\001')
74 if(c
< 0 || (c
== '\001' && peekc(iob
) == '\001'))
80 return(((c
=peekc(iob
))<0||c
=='\001')?