Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/5/84; site osu-eddie.UUCP Path: utzoo!watmath!clyde!cbosgd!osu-eddie!george From: george@osu-eddie.UUCP (George Jones) Newsgroups: net.micro.amiga Subject: Re: Re: Wildcard routines/ls.c sources Message-ID: <1211@osu-eddie.UUCP> Date: Wed, 29-Jan-86 20:35:34 EST Article-I.D.: osu-eddi.1211 Posted: Wed Jan 29 20:35:34 1986 Date-Received: Sat, 1-Feb-86 00:05:32 EST References: <1149@osu-eddie.UUCP> <3046@vax4.fluke.UUCP> Distribution: net Organization: Ohio State Univ., CIS Dept., Cols, Oh. Lines: 71 > > Rick Shaffner asked me to forward his LS program and wildcard routines > > here. The routines (used by LS) provide a means of looking up > > files using the familiar "?" and "*" wildcard characters. There is also > > a jacket routine that handles redirection of output to seperate > > files when there are multiple (possibly wildcarded) input files. > > > > I will forward any feedback, suggestions, etc. to Rick. > > > > ================================Cut Here================================ > > > In the source files is mentioned another #include file named 'wexp.h'. > > This file was not included in this batch. Can someone repost this file. > Without it, nothing will compile! Ooops ! ==============================Cut Here============================== /* ** The following is an include file for wildexp.c and also ** for any programs which desire to use findfirst and/or findnext. ** This file is not needed for programs that are only using ** iswild and wildexp. ** ** Written by: Rick Schaeffer ** E. 13611 26th Ave ** Spokane, Wa. 99216 ** Compuserve ID: 70120,174 ** Bytenet ID: ricks. */ #ifndef LIBRARIES_DOS_H #include #endif #ifndef LIBRARIES_DOSEXTENS_H struct Msg { int dummy; }; /* make Lattice shut-up about this */ #include #endif /* ** The following is the structure used by findfirst and findnext. ** A pointer to this structure MUST be passed to findfirst, which ** fills it in. Subsequent calls to findnext must pass a pointer ** to the structure which was filled in by findfirst. The actual ** file name found is in the "fname" element of the structure after ** each call. NOTE: The last two elements of the structure refer ** to AmigaDos specific items. Users of findfirst and findnext may, ** if they choose, define the "find" structure such that the last ** two elements (flock and fp) are defined as "long". In that fashion, ** you can eliminate the need to #include the "dos" information. Of ** course, if access to the FileInfoBlock is desired, you must use ** the structure as defined below. */ struct find { char path[128]; /* path portion of the argument */ char name[32]; /* name portion of the argument */ char fpath[128]; /* FULL path to actual file found */ /* NOTE: fpath is currently not filled in. To be added later */ char fname[32]; /* actual name of file found */ BPTR flock; /* lock for the directory containing the file */ struct FileInfoBlock *fp; /* pointer to fib of file */ }; -- ----------- George M. Jones cbosgd!osu-eddie!george (uucp) (614) 885-5102 (home) george@ohio-state.csnet (csnet) (614) 457-8600 (work) 70003,2443 (CompusServe)