10 char achOrder[3] = { 0 };
11 char achDayZero[2], *pszDayZero;
12 char achMonZero[2], *pszMonZero;
13 char achDate[2], *pszDate;
21 achFormat,
sizeof(achFormat) - 1 );
23 size_t uiNameSize = strlen(pszName);
24 if( uiNameSize < len ) {
25 strcpy( buffer, pszName );
35 achDayZero,
sizeof(achDayZero) );
37 achMonZero,
sizeof(achMonZero) );
39 achDate,
sizeof(achDate) );
40 if( pszDate!=
NULL && pszDayZero!=0 && pszMonZero!=0 ) {
41 switch( atoi( pszDate ) ) {
55 if( achOrder[0]!=0 ) {
56 size_t remaining = len - 1;
57 int day_lead_zero = atoi( pszDayZero ) != 0;
58 int mon_lead_zero = atoi( pszMonZero ) != 0;
60 const char *pszAdd =
NULL;
62 switch ( achOrder[i] ) {
81 add_len = strlen(pszAdd);
82 if( remaining < add_len )
84 strcpy( buffer, pszAdd );
90 strcpy( buffer,
"/" );