// filename:c2011-7-29-4-4-ex.c
// original examples and/or notes:
// 		(c) ISO/IEC JTC1 SC22 WG14 N1570, April 12, 2011
// 			C2011 7.29.4.4.4 The wcsxfrm function
// compile and output mechanism:
// 		(c) Ogawa Kiyoshi, kaizen@gifu-u.ac.jp, December.29, 2013
// compile errors and/or wornings:
// 		(c) Apple LLVM version 4.2 (clang-425.0.27) (based on LLVM 3.2svn)
// 			Target: x86_64-apple-darwin11.4.2 //Thread model: posix
// 		(c) LLVM 2003-2009 University of Illinois at Urbana-Champaign.
#include <stdio.h>
#include <wchar.h>
// Example
wchar_t * s =L"The value of the following expression is the length of the array needed to hold the transformation of the wide string pointed to by s:.";

int main(void)
{
return printf("7.29.4.4.4 The wcsxfrm function %ld\n",1 + wcsxfrm(NULL, s, 0));
}
// output may be 
// 7.29.4.4.4 The wcsxfrm function 136