Changeset 8219eb9 in mainline for uspace/lib/posix/time.c


Ignore:
Timestamp:
2012-04-23T22:14:32Z (12 years ago)
Author:
Maurizio Lombardi <m.lombardi85@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
f6cb995
Parents:
5b3394c
Message:

libc: move asctime() from libposix to libc

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/posix/time.c

    r5b3394c r8219eb9  
    383383 *
    384384 * @param timeptr Broken-down time structure.
    385  * @return Pointer to a statically allocated string.
    386  */
    387 char *posix_asctime(const struct tm *timeptr)
    388 {
    389         static char buf[ASCTIME_BUF_LEN];
    390         return posix_asctime_r(timeptr, buf);
    391 }
    392 
    393 /**
    394  * Converts broken-down time to a string in format
    395  * "Sun Jan 1 00:00:00 1970\n". (Obsolete)
    396  *
    397  * @param timeptr Broken-down time structure.
    398385 * @param buf Buffer to store string to, must be at least ASCTIME_BUF_LEN
    399386 *     bytes long.
     
    436423                return NULL;
    437424        }
    438         return posix_asctime(loctime);
     425        return asctime(loctime);
    439426}
    440427
Note: See TracChangeset for help on using the changeset viewer.