ReactOS Fundraising Campaign 2012
 
€ 4,410 / € 30,000

Information | Donate

Home | Info | Community | Development | myReactOS | Contact Us

  1. Home
  2. Community
  3. Development
  4. myReactOS
  5. Fundraiser 2012

  1. Main Page
  2. Alphabetical List
  3. Data Structures
  4. Directories
  5. File List
  6. Data Fields
  7. Globals
  8. Related Pages

ReactOS Development > Doxygen

wstrdate.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 wchar_t* _wstrdate(wchar_t* date)
00016 {
00017    static const WCHAR format[] = { 'M','M','\'','/','\'','d','d','\'','/','\'','y','y',0 };
00018 
00019    GetDateFormatW(LOCALE_NEUTRAL, 0, NULL, format, (LPWSTR)date, 9);
00020 
00021    return date;
00022 
00023 }
00024 
00025 int CDECL _wstrdate_s(wchar_t* date, size_t size)
00026 {
00027     if(date && size)
00028         date[0] = '\0';
00029 
00030     if(!date) {
00031         *_errno() = EINVAL;
00032         return EINVAL;
00033     }
00034 
00035     if(size < 9) {
00036         *_errno() = ERANGE;
00037         return ERANGE;
00038     }
00039 
00040     _wstrdate(date);
00041     return 0;
00042 }

Generated on Sun May 27 2012 04:36:47 for ReactOS by doxygen 1.7.6.1

ReactOS is a registered trademark or a trademark of ReactOS Foundation in the United States and other countries.