delorie.com/archives/browse.cgi | search |
From: | "Alex Vinokur" <alexvn AT bigfoot DOT com> |
Newsgroups: | comp.os.msdos.djgpp |
Subject: | mktime() & time_t |
Date: | Tue, 21 May 2002 09:15:01 +0200 |
Organization: | Scopus |
Lines: | 71 |
Message-ID: | <accohq$opji0$1@ID-79865.news.dfncis.de> |
NNTP-Posting-Host: | gateway.scopus.net (62.90.123.5) |
X-Trace: | fu-berlin.de 1021961594 26005056 62.90.123.5 (16 [79865]) |
X-Priority: | 3 |
X-MSMail-Priority: | Normal |
X-Newsreader: | Microsoft Outlook Express 6.00.2600.0000 |
X-MimeOLE: | Produced By Microsoft MimeOLE V6.00.2600.0000 |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Reply-To: | djgpp AT delorie DOT com |
Hi, According to manual the mktime() function may return -1. On other hand time_t is unsigned int. Is it consistent ? ############################################## ############# man mktime : BEGIN ############# ############# DJGPP Version 2.03 ############# ############################################## || Fragments mktime ====== Syntax ------ #include <time.h> time_t mktime(struct tm *tptr); [--omitted--] Return Value ------------ The resulting time, or -1 if the time in TPTR cannot be described in that format. [--omitted--] ############################################## ############# man mktime : END ############### ############################################## ############################################## ########### File djtypes.h : BEGIN ########### ############# DJGPP Version 2.03 ############# ############################################## || Fragments [--omitted--] #define __DJ_time_t typedef unsigned int time_t; [--omitted--] ############################################## ########### File djtypes.h : END ############# ############################################## -- ==================== Alex Vinokur http://up.to/alexvn http://go.to/alexv_math mailto:alexvn AT bigfoot DOT com mailto:alexvn AT go DOT to ====================
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |