[cc65] C64 POSIX dirent stuff actually working?

From: Oliver Schmidt <ol.sc1web.de>
Date: 2012-07-22 23:50:39
Hi,

I'm working with the snapshot 2.13.9.20120720-1 and this program:

====================
#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);
}
====================

I'm putting the program on an image file using 'c1541 -attach test.d64
-write test' and then I'm using the 'File | Autostart' menu option in
VICE. I have 'True Drive Emulation' checked.

I'd expect two lines of output: One for the disk label and one for the
program itself. However I don't get any output at all :-(

BTW: On the Apple II I get the expected results from the very same source.

Any hints are appreciated,
Oliver
----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Sun Jul 22 23:52:06 2012

This archive was generated by hypermail 2.1.8 : 2012-07-22 23:52:10 CEST