On Sun, 17 Aug 2003 17:31:50 +0200
"Oren Gozlan" <[EMAIL PROTECTED]> wrote:
> I'm looking for a starter source to build a license key that will be
> expired after 30 days.
Easy (no error checking, add it yourself):
...
/* <MORON MODE START> */
stat(argv[0], &stbuf);
if((stbuf.st_ctime - time(NULL)) >= 30*24*3600) {
printf("You license expired, please be polite"
" and buy a new one. Please, Please....\n");
printf("Running touch on the executable is nasty!\n");
}
/* </MORON MODE END> */
...
/* Now let's do something usefull, shall we? */
--
Oron Peled Voice/Fax: +972-4-8228492
[EMAIL PROTECTED] http://www.actcom.co.il/~oron
"Some people have a life, others have Windows to tell them
where they want to go today" - Ronald C.F. Antony
=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]