home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / programm / 3178 < prev    next >
Encoding:
Text File  |  1992-11-18  |  1.1 KB  |  39 lines

  1. Newsgroups: comp.programming
  2. Path: sparky!uunet!mnemosyne.cs.du.edu!nyx!nogurtso
  3. From: nogurtso@nyx.cs.du.edu (Nick Ogurtsov)
  4. Subject: Help!
  5. Message-ID: <1992Nov19.000103.27156@mnemosyne.cs.du.edu>
  6. Sender: usenet@mnemosyne.cs.du.edu (netnews admin account)
  7. Organization: Nyx, Public Access Unix (sponsored by U. of Denver Math/CS dept.)
  8. Disclaimer1: Nyx is a public access Unix system run by the University of
  9. Disclaimer2: Denver for the Denver community.  The University has neither
  10. Disclaimer3: control over nor responsibility for the opinions of users.
  11. Date: Thu, 19 Nov 92 00:01:03 GMT
  12. Lines: 25
  13.  
  14. Hi,
  15. I have a problem. I'm new in C language, so can anyone help me?
  16. Could anyone write a piece of C code to show how to use findfirst()?
  17. In compiler I use it's defined as:
  18. int findfirst(const char *filename,
  19.               struct ffblk *ffblk, int fattrib);
  20. (Returns 0 on success).
  21.  
  22. ffblk is defined as:
  23.  
  24. struct ffblk{
  25.         ...,
  26.         ...,
  27.         char fname[13],
  28.         ...};
  29.  
  30. Could anyone show me how to display found file name on the screen? (from
  31.  ffblk.fname).
  32.  
  33. Any help will be greatly appreciated!!!
  34.  
  35. Thanks.
  36.  
  37. Nick.
  38.  
  39.