Hello. Here is wcsnlen() streightforward implementation. This is GNU extension function and is useful sometimes. Best Regards, Artem B. Bityuckiy. -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: wcsnlen.c URL: <http://sourceware.org/pipermail/newlib/attachments/20031023/7943ef49/attachment.c>