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_ctime.c,v 1.2 2004-11-17 19:07:22 obarthel Exp $
* $Id: time_ctime.c,v 1.3 2004-11-18 09:40:37 obarthel Exp $
*
* :ts=4
*
@ -43,36 +43,6 @@
/****************************************************************************/
char *
ctime_r(const time_t *tptr,char * buffer)
{
char * result = NULL;
struct tm tm;
ENTER();
assert( tptr != NULL && buffer != NULL );
#if defined(CHECK_FOR_NULL_POINTERS)
{
if(tptr == NULL || buffer == NULL)
{
errno = EFAULT;
goto out;
}
}
#endif /* CHECK_FOR_NULL_POINTERS */
result = asctime_r(localtime_r(tptr,&tm),buffer);
out:
RETURN(result);
return(result);
}
/****************************************************************************/
char *
ctime(const time_t *tptr)
{