cvs.delorie.com/djgpp/doc/libc/libc_367.html   search  
libc.a reference

[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

ftime

Syntax

 
#include <sys/timeb.h>

int ftime(struct timeb *buf);

Description

This function stores the current time in the structure buf. The format of struct timeb is:

 
struct timeb {
  time_t         time;     /* seconds since 00:00:00 GMT 1/1/1970 */
  unsigned short millitm;  /* milliseconds */
  short          timezone; /* difference between GMT and local,
                            * minutes */
  short          dstflag;  /* set if daylight savings time in affect */
};

Return Value

Zero on success, nonzero on error.

Portability

ANSI/ISO C No
POSIX No

Example

 
struct timeb t;
ftime(&t);


  webmaster     delorie software   privacy  
  Copyright © 2004     Updated Apr 2004