Internationalization and localization tools


Locale-Sensitive Length Function

void *memccpy(void *dest, const void *src, int c, unsigned int count);

void *_memccpy(void *dest, const void *src, int c, unsigned int count);

Internationalization (I18n) Function Overview

The memccpy function copies no more than count bytes from src to dest, and only until the character c is copied. If c is copied, then the return is a pointer to the byte past c in dest; otherwise, the return is NULL.

_memccpy is the the Windows version of the function.

I18n Issues

This function operates on single-bytes only and should not be used to copy either multibyte or wide-character strings. Instead, use memcpy for multibyte strings, being careful to copy entire multibyte character sequences; for wide-character strings, use wmemcpy.

There is no Windows Generic version of memcpy.

Recommended Replacements*

*If you're already using the recommended function, see I18n Issues for other reasons why Globalyzer is detecting the function.

Locale-Sensitive Length Functions

 

Lingoport internationalization and localization services and software