tag:blogger.com,1999:blog-1158653486009791669.post4666360461162309028..comments2023-09-05T04:17:36.326-07:00Comments on Vampire Software Development: readdir in the wrong orderAnonymoushttp://www.blogger.com/profile/05926250964970803769noreply@blogger.comBlogger2125tag:blogger.com,1999:blog-1158653486009791669.post-84180708431112223492009-09-19T08:34:29.576-07:002009-09-19T08:34:29.576-07:00Hi,
ls sorts by default. The output of readdir is...Hi,<br /><br />ls sorts by default. The output of readdir is not documented, but you can get the same order from readdir() and ls -1f in case you need it.melohttps://www.blogger.com/profile/14454374282039595897noreply@blogger.comtag:blogger.com,1999:blog-1158653486009791669.post-23049774094319055042009-09-19T02:05:55.352-07:002009-09-19T02:05:55.352-07:00Order returned is not documented at all. So you sh...Order returned is not documented at all. So you should not rely on any order.<br /><br />They are returned in order provided by OS. Returning sorted list them would mean necessity to read them all first, not one by one.chornyhttps://www.blogger.com/profile/03938973252154624018noreply@blogger.com