1 int foo;
2 typedef long unsigned int size_t;
3 typedef short unsigned int wchar_t;
4 extern int swprintf (wchar_t *wcs, size_t maxlen, const wchar_t *format, ...);
5 struct tm
6 {
7   int tm_mday;
8   int tm_mon;
9   int tm_year;
10 };
11 size_t
__strftime(wchar_t * s,size_t maxsize,const wchar_t * format,const struct tm * tim_p)12 __strftime (wchar_t * s, size_t maxsize, const wchar_t * format, const struct tm *tim_p)
13 {
14   size_t count = 0;
15   int len = 0;
16   size_t i, ctloclen;
17   unsigned long width;
18   {
19     if (foo)
20       {
21 	{
22 	  wchar_t *fmt = L"%s%.*d";
23 	  len = swprintf (&s[count], maxsize, fmt, "-", width, 0);
24 	}
25 	if ((count) >= maxsize)
26 	  return 0;
27       }
28     else
29       {
30 	len =
31 	  swprintf (&s[count], maxsize - count, L"%.2d/%.2d/%.2d", 42, 99, 0);
32 	if ((count) >= maxsize)
33 	  return 0;
34 
35       }
36   }
37 }
38