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