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:
@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user