🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.amiga.tech
Article #3061

Re: FileRequest FRB_DoWildFunc probs

#3061
From: Ross Cunniff
Date: Sat, 24 Mar 1990 04:00
36 lines
1450 bytes
(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
Technical Details
Message-ID: <9310008@hpfcso.HP.COM>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!mailrus!uwm.edu!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!lll-winken!decwrl!ucbvax!hplabs!hpfcso!cunniff

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!mailrus!uwm.edu!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!lll-winken!decwrl!ucbvax!hplabs!hpfcso!cunniff
From: cunniff@hpfcso.HP.COM (Ross Cunniff)
Newsgroups: comp.sys.amiga.tech
Subject: Re: FileRequest FRB_DoWildFunc probs
Message-ID: <9310008@hpfcso.HP.COM>
Date: 24 Mar 90 04:00:16 GMT
Organization: Hewlett-Packard, Fort Collins, CO, USA
Lines: 36