cunniff@hpfcso.HP.COM (Ross Cunniff) (03/24/90)
(the original article seems to have expired on our system, so I'm doing this from memory...) Somebody was asking why the ARP FileRequest FRB_DoWildFunc didn't seem to work as documented. I finally managed to get Charlie Heath to answer this question (since I had run into the same problem). Seems that it's not a pointer to a FileInfoBlock, but rather a pointer to an AnchorPath structure. Here's a WildFunc that seems to work: static WildFunc( Mask, Object ) long Mask; void *Object; { char *strrchr(), *dotinfo; struct AnchorPath *Info; if( Mask == FRF_DoWildFunc ) { Info = (struct AnchorPath *)Object; dotinfo = strrchr( Info->ap_Info.fib_FileName, '.' ); if( !dotinfo ) return 0; if( stricmp( dotinfo, ".info" ) == 0 ) return 1; return 0; } return 0; } Note that the FileRequest documentation lies... Hope this helps. Ross Cunniff Hewlett-Packard Colorado Language Lab ...{ucbvax,hplabs}!hpfcla!cunniff cunniff%hpfcrt@hplabs.HP.COM