-=> Quoting Bruce Wilson to Rick Collins <=-
-=> FidoMail to 1:163/215, please.-=<
rc> But: could you not use WAITFOR and specify "user" as the
rc> string? Either "userid" or "username" would cause a hit. :-)
BW>
BW> Well, three of you made the same suggestion, but no one provided
me
BW> with an example of using "track" in this situation. :-)
True enough - does this snippet help?
str userid[] ="userid:";
str username[] = "username:";
.....
trk1 = track (userid, 1);
trk2 = track (username,1);
while (1)
{
terminal();
stat = track_hit (0); // see which (if any) track was hit
if (stat == trk1)
{
break;
}
else if (stat == trk2)
{
break;
}
}
cputs(" "); //Response to Userid/name
track_free(0);
TTFN. Rick.
Ottawa, ON 16 Jun 0:12
--- Blue Wave/DOS v2.20
---------------
* Origin: BitByters BBS, Rockland ON, Can. (613)446-7773 v34, (1:163/215)
|