2 Proprietary Rand Corporation
, 1981.
3 Further distribution of
this software
4 subject to the terms of the Rand
13 m_getfld(state
, name
, buf
, bufsz
, iob
)
21 while((c
= getc(iob
)) == '\001' && peekc(iob
) == '\001')
22 while(getc(iob
) != '\n');
33 if(c
== '\n' || c
== '-')
39 if(cp
>= &name
[NAMESZ
-1]) {
41 fprintf(stderr
, "??Component Name Exceeds %d Chars:\n \"%s\"\n", NAMESZ
-1, name
);
44 if(c
== '\n' || c
< 0) {
46 fprintf(stderr
, "??%s Encountered While Scanning for a colon:\n \"%s\"\n",
47 (c
< 0)? "<eof>":"<end of line>", name
);
58 if((c
= getc(iob
)) < 0)
64 if((c
= peekc(iob
)) != ' ' && c
!= '\t')
65 if(c
== '\001' || c
< 0)
69 if(cp
>= &buf
[bufsz
-1])
70 return(peekc(iob
) < 0? FLDEOF
:FLDPLUS
);
74 while(getc(iob
) != '\n') ;
76 if((c
= getc(iob
)) == '\001' && peekc(iob
) == '\001')
82 if(c
< 0 || (c
== '\001' && peekc(iob
) == '\001'))
87 if(cp
>= &buf
[bufsz
-1])
88 return(((c
=peekc(iob
))<0||c
=='\001')?