This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

How to display the date an executable was linked


#include <time.h>
#include <stdio.h>
/* no error checking. */
int main(int argc,char *argv[])
{	FILE *f = fopen(argv[1],"rb");
	long date;

	fseek(f,136,SEEK_SET);
	fread(&date,1,4,f);
	fclose(f);
	printf("%s",ctime(&date));
}

Attention! This code is copyrighted! 
Each time you read it you owe me US$100!!! :-)

-- 
Jacob Navia	Logiciels/Informatique
41 rue Maurice Ravel			Tel 01 48.23.51.44
93430 Villetaneuse 			Fax 01 48.23.95.39
France
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]