| delorie.com/archives/browse.cgi | search |
| Message-ID: | <361788F0.A5FAC89B@montana.com> |
| Date: | Sun, 04 Oct 1998 08:40:48 -0600 |
| From: | bowman <bowman AT montana DOT com> |
| Reply-To: | bowman AT montana DOT com |
| X-Mailer: | Mozilla 4.5b2 [en] (Win95; I) |
| X-Accept-Language: | en |
| MIME-Version: | 1.0 |
| To: | "djgpp AT delorie DOT com" <djgpp AT delorie DOT com> |
| Subject: | Re: newbie: strftime |
| References: | <Pine DOT SUN DOT 3 DOT 91 DOT 981004123247 DOT 1863I-100000 AT is> |
Eli Zaretskii wrote: > > strftime(buf, 100, "%B %d, %Y", &t); > This passes a "struct tm **" to `strftime' whereas it expects a > "struct tm *", so it also fails. Most definitely. I should have compiled and tested the snippet. When I edited the original, I missed the '&' operator. Embarrassing, after noting the return value of localtime. thanks for the correction, Eli.
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |