- u_memset(myUString, 0x2a, sizeof(myUString)/sizeof(*myUString));
- u_memset(uStringBuf, 0x2a, sizeof(uStringBuf)/sizeof(*uStringBuf));
- memset(myString, '*', sizeof(myString)/sizeof(*myString));
- memset(testBuf, '*', sizeof(testBuf)/sizeof(*testBuf));
+ u_memset(myUString, 0x2a, UPRV_LENGTHOF(myUString));
+ u_memset(uStringBuf, 0x2a, UPRV_LENGTHOF(uStringBuf));
+ memset(myString, '*', UPRV_LENGTHOF(myString));
+ memset(testBuf, '*', UPRV_LENGTHOF(testBuf));