Managing memory for strings and characters

You must make buffers large enough to hold text in any of the languages that your application will handle.

If your application will handle many languages, you must ensure that allocated buffers are large enough to hold translated versions of the text. If your application will handle Asian (multibyte) languages, you need to replace single-byte buffers with multibyte- or wide-character buffers.

Important: Any memory that functions allocate remains allocated only for the duration of the function. It does not remain after the function returns. Therefore, you must manage memory for multibyte-character and wide-character strings.