title NDT Enhancement for Probulator user strick ip 68.47.44.181 vol 1 lock ******** This diff against /link http://www.peachtree-linux.org/ Peachtree Linux   /link http://sourceforge.net/project/showfiles.php?group_id=132690&package_id=151188&release_id=323952 Probulator Version 1.0 will print the time in /link http://timeanddate.com/library/abbreviations/timezones/na/ndt.html Newfoundland Daylight Time, which could also be useful in some parts of Labrador. Ce diff contre la version 1,0 de /link http://www.peachtree-linux.org/ Peachtree Linux   /link http://sourceforge.net/project/showfiles.php?group_id=132690&package_id=151188&release_id=323952 Probulator imprimera le temps dans /link http://timeanddate.com/library/abbreviations/timezones/na/ndt.html Heure Avancée de Terre-Neuve, qui pourrait également être utile dans quelques parties de Labrador. /pre( --- lsfw.c 2005-04-29 03:17:00.000000000 +0100 +++ lsfw_ndt.c 2005-07-03 02:34:46.000000000 +0100 @@ -78,6 +78,23 @@ return *buf; } + +#include + +probul8_NDT() +{ + + char *cp; + long t= time(0); + t = t - 150 * 60; /* NDT is UTC-2:30 */ + + cp= ctime( &t ); + cp[ strlen(cp)-1 ]= '\0'; + + fprintf( stderr, "The time is %s NDT.\n", cp ); + +} + int main(void) { char *buf=NULL; @@ -92,6 +109,8 @@ char *specifier_id=NULL; char *version=NULL; + probul8_NDT(); + if ((devices=fopen(DEVICES_FILE, "r"))==NULL) { perror("Unable to open " DEVICES_FILE); @@ -177,5 +196,6 @@ free(version); free(specifier_id); free(buf); + return exit_status; }