delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1998/07/27/19:54:08

From: root AT jacob DOT remcomp DOT fr (root)
Subject: How to display the date an executable was linked
27 Jul 1998 19:54:08 -0700 :
Message-ID: <m0z0pGU-0002fdC.cygnus.gnu-win32@jacob.remcomp.fr>
To: gnu-win32 AT cygnus DOT com

#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 AT cygnus DOT com" with one line of text: "help".

- Raw text -


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