delorie.com/djgpp/doc/libc/libc_714.html   search  
libc.a reference

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

settimeofday

Syntax

 
#include <time.h>

int settimeofday(struct timeval *tp, ...);

Description

Sets the current GMT time. For compatibility, a second argument is accepted. See section gettimeofday, for information on the structure types.

Return Value

Zero if the time was set, nonzero on error.

Portability

ANSI/ISO C No
POSIX No


  webmaster     delorie software   privacy  
  Copyright © 2004     Updated Apr 2004