home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.programming
- Path: sparky!uunet!mnemosyne.cs.du.edu!nyx!nogurtso
- From: nogurtso@nyx.cs.du.edu (Nick Ogurtsov)
- Subject: Help!
- Message-ID: <1992Nov19.000103.27156@mnemosyne.cs.du.edu>
- Sender: usenet@mnemosyne.cs.du.edu (netnews admin account)
- Organization: Nyx, Public Access Unix (sponsored by U. of Denver Math/CS dept.)
- Disclaimer1: Nyx is a public access Unix system run by the University of
- Disclaimer2: Denver for the Denver community. The University has neither
- Disclaimer3: control over nor responsibility for the opinions of users.
- Date: Thu, 19 Nov 92 00:01:03 GMT
- Lines: 25
-
- Hi,
- I have a problem. I'm new in C language, so can anyone help me?
- Could anyone write a piece of C code to show how to use findfirst()?
- In compiler I use it's defined as:
- int findfirst(const char *filename,
- struct ffblk *ffblk, int fattrib);
- (Returns 0 on success).
-
- ffblk is defined as:
-
- struct ffblk{
- ...,
- ...,
- char fname[13],
- ...};
-
- Could anyone show me how to display found file name on the screen? (from
- ffblk.fname).
-
- Any help will be greatly appreciated!!!
-
- Thanks.
-
- Nick.
-
-