core/newlib/gettimeofday_r.c File Reference

#include <reent.h>
#include <sys/time.h>
#include <time.h>

Go to the source code of this file.

Functions

int _gettimeofday_r (struct _reent *r, struct timeval *tp, struct timezone *tzp)

Detailed Description

newlib - gettimeofday.

Todo:
Add implementation.

Definition in file gettimeofday_r.c.


Function Documentation

int _gettimeofday_r ( struct _reent *  r,
struct timeval *  tp,
struct timezone *  tzp 
)

This function has to be implemented if you want to use gettimeofday in your programs.

Return time in epoch seconds since Jan 01, 1970

Parameters:
p_reent Pointer to a structure that will receive the return value.
tp Address of timeval structure to fill.
tzp Address of timezone structure to fill.
Returns:
Zero on success, nonzero on failure.

Definition at line 34 of file gettimeofday_r.c.

 All Data Structures Files Functions Variables Typedefs Enumerations Defines

Generated by  doxygen 1.6.2