1
0
mirror of https://github.com/adtools/clib2.git synced 2025-12-08 14:59:05 +00:00

- Split the reentrant functions from the non-reentrant ones.

git-svn-id: file:///Users/olsen/Code/migration-svn-zu-git/logical-line-staging/clib2/trunk@14774 87f5fb63-7c3d-0410-a384-fd976d0f7a62
This commit is contained in:
Olaf Barthel
2004-11-18 09:40:37 +00:00
parent 2d5193371a
commit 24ea9161a7
14 changed files with 571 additions and 341 deletions

View File

@ -1,5 +1,5 @@
/*
* $Id: time_gmtime.c,v 1.2 2004-11-17 19:07:22 obarthel Exp $
* $Id: time_gmtime.c,v 1.3 2004-11-18 09:40:37 obarthel Exp $
*
* :ts=4
*
@ -43,35 +43,6 @@
/****************************************************************************/
struct tm *
gmtime_r(const time_t *t,struct tm * tm_ptr)
{
struct tm * result = NULL;
ENTER();
assert( t != NULL && tm_ptr != NULL );
#if defined(CHECK_FOR_NULL_POINTERS)
{
if(t == NULL || tm_ptr == NULL)
{
errno = EFAULT;
goto out;
}
}
#endif /* CHECK_FOR_NULL_POINTERS */
result = __convert_time((*t), 0, tm_ptr);
out:
RETURN(result);
return(result);
}
/****************************************************************************/
struct tm *
gmtime(const time_t *t)
{