home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / alt / msdos / programm / 3064 < prev    next >
Encoding:
Internet Message Format  |  1993-01-02  |  1.3 KB

  1. Xref: sparky alt.msdos.programmer:3064 comp.os.msdos.programmer:11744
  2. Newsgroups: alt.msdos.programmer,comp.os.msdos.programmer
  3. Path: sparky!uunet!munnari.oz.au!spool.mu.edu!umn.edu!csus.edu!netcom.com!pdh
  4. From: pdh@netcom.com (Phil Howard )
  5. Subject: Re: Is findfirst/findnext deterministic? (same order each time)?
  6. Message-ID: <1993Jan2.071846.22403@netcom.com>
  7. Organization: Netcom - Online Communication Services  (408 241-9760 guest) 
  8. References: <1993Jan2.020431.14831@kronos.arc.nasa.gov>
  9. Date: Sat, 2 Jan 1993 07:18:46 GMT
  10. Lines: 15
  11.  
  12. raymond@kronos.arc.nasa.gov (Eric A. Raymond) writes:
  13.  
  14. >Are the DOS findfirst/findnext directory functions deterministic.
  15. >That is, will they report the files in the same order for a given
  16. >disk?
  17.  
  18. Not unless the files are on there in exactly the same order.  You get
  19. the files in the order they are in the directory data blocks themselves.
  20. I am working on a program where I want the files in a more deterministic
  21. way, and I sort them myself.
  22. -- 
  23. /************************************************************************\
  24. | Phil Howard,  pdh@netcom.com,  KA9WGN    Spell protection?  "1(911)A1" |
  25. | "It's not broken... it's just functionally challenged" --Phil and Pete |
  26. \************************************************************************/
  27.