* with the "wide-character" functions. */
# define tmemchr wmemchr
# define tmemcpy wmemcpy
+# define tmemmove wmemmove
# define tmempcpy wmempcpy
# define tstrcpy wcscpy
# define tprintf wprintf
-# define tsprintf _swprintf
+# define tsprintf swprintf
# define tfprintf fwprintf
# define tvfprintf vfwprintf
# define istalpha iswalpha
# define taccess _waccess
# define tstrdup wcsdup
# define ttempnam _wtempnam
+# define tgetenv _wgetenv
+# define totlower(c) towlower((wchar_t)(c))
/* The following "tchar" functions do not have exact wide-character equivalents
* on Windows so require parameter rearrangement or redirection to a replacement
* function defined ourselves. */
* string functions. */
# define tmemchr memchr
# define tmemcpy memcpy
+# define tmemmove memmove
# define tmempcpy mempcpy
# define tstrcpy strcpy
# define tprintf printf
# define tmkdir mkdir
# define tstrdup strdup
# define ttempnam tempnam
+# define tgetenv getenv
+# define totlower(c) tolower((unsigned char)(c))
# define TSTRDUP STRDUP
# define tstrerror_r strerror_r
# define trename rename