[prev in list] [next in list] [prev in thread] [next in thread] 

List:       mingw-users
Subject:    [Mingw-users] converting time_create
From:       Jason Benjamin <red_hax0r () yahoo ! com>
Date:       2005-11-29 0:20:39
Message-ID: 20051129002039.70617.qmail () web81909 ! mail ! mud ! yahoo ! com
[Download RAW message or body]

In order to convert time_create I probably must use
time_t or something.  How do I do the actual
conversion though?  

//************************
#include <io.h> 
#include <stdio.h> 
#include <string.h> 
int i = 0;
int m=0; 
char filelist[100][100];

struct _finddata_t fd; 


int main() {
long fh = _findfirst("*.*", &fd); 


if (fh != -1) { 


 do { 
      if (fd.attrib & _A_SUBDIR);          

         
       else sprintf(filelist[i++], fd.time_create);
       
           }
      while (_findnext(fh, &fd) == 0); 

m=i;
for (i=0; i < m; i++) printf("%s\n", filelist[i]);
system("pause");
_findclose(fh); 
}
return 0;
}



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
MinGW-users mailing list
MinGW-users@lists.sourceforge.net

You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic