www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/04/23/09:01:29

Sender: brozzis AT mag00 DOT cedi DOT unipr DOT it
Message-Id: <335E0202.DE5@mag00.cedi.unipr.it>
Date: Wed, 23 Apr 1997 14:35:14 +0200
From: Stefano Brozzi <brozzis AT mag00 DOT cedi DOT unipr DOT it>
Mime-Version: 1.0
To: djgpp AT delorie DOT com
Subject: <dir.h> problem

Ok, copy this program. Call it imOK.c, compile. it works correctly.
Rename it imKO.cc, compile. Two heading chars are missing in filenames.
Please explain. It's late in the night, am I missing something ?

#include <stdio.h>              // for printf
#include <dir.h>

int main()
{
     struct ffblk f;
     int done;

     done = findfirst("*.*", &f, FA_ARCH|FA_RDONLY);
     while (!done)
     {
       printf( "\n%s", f.ff_name);
       done = findnext(&f);
     }
}

        TIA
        Stefano

PS: this is taken from help, slightly reduced.

PPS:
Why is DJGPP still present in all FTP sites ?
Does it have anything superior than v2 (other than compile speed) or
it's there just for supporting 'old' users ?

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019