home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / lang / c / 18303 < prev    next >
Encoding:
Internet Message Format  |  1992-12-13  |  922 b 

  1. Xref: sparky comp.lang.c:18303 comp.unix.ultrix:8863 comp.unix.programmer:5675
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!rutgers!modus!systemy!oliver!ugo
  3. From: ugo@oliver.sublink.org (Ugo Cei)
  4. Newsgroups: comp.lang.c,comp.unix.ultrix,comp.unix.programmer
  5. Subject: Re: Error using strftime om Ultrix 4.2??
  6. Message-ID: <1992Dec12.131606.16998@oliver.sublink.org>
  7. Date: 12 Dec 92 13:16:06 GMT
  8. References: <1992Dec3.155811.29078@magnus.acs.ohio-state.edu>
  9. Organization: Oliver System - Pavia ITALY
  10. Lines: 12
  11.  
  12. yhtao@magnus.acs.ohio-state.edu (Yu-Hui Tao) writes:
  13.  
  14. >  struct tm timenow;
  15.  
  16. >    strftime(ntime, 26, "%h %d %H:%M:%S %Y", timenow);
  17.                                                  ~~~~~~~
  18.  
  19. You need to put the *address* of ``timenow'' there, i.e. ``& timenow''.
  20.  
  21. -- 
  22. Ugo Cei --- Via Colombo 7 - 27100 Pavia - ITALY   |
  23.          -- Sublink:  ugo@oliver.sublink.org      | "Real programs dump core"
  24.