Home | Info | Community | Development | myReactOS | Contact Us
ReactOS Development > Doxygenstrtime.c
Go to the documentation of this file.
00001 /* 00002 * COPYRIGHT: See COPYING in the top level directory 00003 * PROJECT: ReactOS system libraries 00004 * FILE: lib/sdk/crt/time/strtime.c 00005 * PURPOSE: Fills a buffer with a formatted time representation 00006 * PROGRAMER: Ariadne 00007 * UPDATE HISTORY: 00008 * 28/12/98: Created 00009 */ 00010 #include <precomp.h> 00011 00012 /* 00013 * @implemented 00014 */ 00015 char* _strtime(char* time) 00016 { 00017 static const char format[] = "HH':'mm':'ss"; 00018 00019 GetTimeFormatA(LOCALE_NEUTRAL, 0, NULL, format, time, 9); 00020 00021 return time; 00022 } 00023 00024 int CDECL _strtime_s(char* time, size_t size) 00025 { 00026 if(time && size) 00027 time[0] = '\0'; 00028 00029 if(!time) { 00030 *_errno() = EINVAL; 00031 return EINVAL; 00032 } 00033 00034 if(size < 9) { 00035 *_errno() = ERANGE; 00036 return ERANGE; 00037 } 00038 00039 _strtime(time); 00040 return 0; 00041 } Generated on Sat May 26 2012 04:35:36 for ReactOS by
1.7.6.1
|