delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/09/03/07:00:12

Path: news.mv.net!newsfeed.mathworks.com!sunqbc.risq.qc.ca!feed.nntp.primus.ca!feed.nntp.primus.ca!news2.tor.primus.ca.POSTED!not-for-mail
From: "Peter Erceg" <perceg AT hotmail DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: gmtime() example in libc.info
Lines: 16
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.50.4133.2400
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400
Message-ID: <Daps5.1$DK1.63@news2.tor.primus.ca>
Date: Sun, 3 Sep 2000 03:51:47 -0600
NNTP-Posting-Host: 207.176.137.77
X-Complaints-To: news AT primus DOT ca
X-Trace: news2.tor.primus.ca 967974691 207.176.137.77 (Sun, 03 Sep 2000 05:51:31 EDT)
NNTP-Posting-Date: Sun, 03 Sep 2000 05:51:31 EDT
Organization: Primus Canada
Xref: news.mv.net comp.os.msdos.djgpp:103119

There is a typo in the last line of the gmtime() example in libc.info (File:
libc - Node: gmtime)

time_t x;
struct tm *t;
time(&x);
t = gmtime(&t);

Last line should read:

t = gmtime(&x);





- Raw text -


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