10 char achAddBuffer[2] = { 0 };
11 const char *pszAdd =
NULL;
12 size_t remaining = len - 1, add_len = 0;
13 const char *pszCurrent = nl_langinfo( D_FMT );
17 while ( *pszCurrent!=0 ) {
18 char ch = *pszCurrent;
22 pszAdd = achAddBuffer;
24 }
else if ( do_fmt ) {
64 pszAdd =
"yyyy-MM-dd";
73 pszAdd =
"MM/dd/yyyy";
100 achAddBuffer[0] = ch;
101 pszAdd = achAddBuffer;
107 if( remaining < add_len ) {
110 strcpy( pszOutput, pszAdd );
111 pszOutput += add_len;
112 remaining -= add_len;