Re: [cc65] C64 POSIX dirent stuff actually working?

From: Oliver Schmidt <ol.sc1web.de>
Date: 2012-08-01 09:29:39
Hi Uz,

>> > Apart from
>> > that you're right, the code doesn't work any more.
>>
>> Okay, so my experience is reproducible...
>
> It has been the compiler that generated non working code. It has been fixed,
> so the directory stuff should work (again).

With tonight's snapshot (2.13.9.20120801-1) I get the disk label but
still no file entries. Below the (unchanged) source code:

Regards,
Oliver

==========


#include <stdio.h>
#include <dirent.h>

void main(void)
{
    DIR* dir;
    struct dirent* ent;

    dir = opendir(".");
    while (ent = readdir(dir)) {
        printf("%s\n", ent->d_name);
    }
    closedir(dir);
}
----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Wed Aug 1 09:30:39 2012

This archive was generated by hypermail 2.1.8 : 2012-08-01 09:30:43 CEST