Changeset 56b308e in mainline for uspace/lib/c/generic/time.c
- Timestamp:
- 2012-04-23T22:28:57Z (11 years ago)
- Branches:
- lfn, master, serial
- Children:
- d3e3a71
- Parents:
- f6cb995
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/time.c
rf6cb995 r56b308e 861 861 } 862 862 863 /** 864 * Equivalent to asctime(localtime(clock)). 865 * 866 * @param timer Time to convert. 867 * @return Pointer to a statically allocated string holding the date. 868 */ 869 char *ctime(const time_t *timer) 870 { 871 struct tm *loctime = localtime(timer); 872 if (loctime == NULL) { 873 return NULL; 874 } 875 return asctime(loctime); 876 } 877 863 878 /** @} 864 879 */
Note: See TracChangeset
for help on using the changeset viewer.