cvs.gedasymbols.org/archives/browse.cgi   search  
Mail Archives: djgpp/1997/07/01/19:05:43

Date: Tue, 1 Jul 1997 18:04:28 -0500 (CDT)
From: Adam W Lee <adalee AT sendit DOT sendit DOT nodak DOT edu>
Message-Id: <199707012304.SAA27051@sendit.sendit.NoDak.edu>
To: djgpp AT delorie DOT com
Subject: Re: Directory Listing

I just do something like this...

#include <stdio.h>
#include <dir.h>

void main(int argc, char *argv[])
{
  ffblk ff;
  int done;
  done=findfirst(argv[1],&ff,0);
  while(!done)
  {
    printf("%s",ff.ff_fname);
    done=findnext(&ffblk);
  }
}

I wrote this code online so it may be mistaken....  

atomly

- Raw text -


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