Internationalization and localization tools


ANSI Custom Formatting Function

int printf_size(FILE *fp, const struct printf_info *info, const void *const *args);

Internationalization (I18n) Function Overview

Print a given floating point number as for the format %f except that there is a postfix character indicating the divisor for the number to make this less than 1000.

There are two possible divisors: powers of 1024 or powers of 1000. Which one is used depends on the format character specified while registering this handler. If the character is of lower case, 1024 is used. For upper case characters, 1000 is used. The postfix tag corresponds to bytes, kilobytes, megabytes, gigabytes, etc.

Due to the requirements of register_printf_function, the function which returns information about the arguments must also be provided. See printf_size_info.

I18n Issues

This function is part of a family of functions that are used to create customized printf-style formatting extensions. See ANSI Custom Print Formatting Functions for further discussion of the issues involved when migrating to UTF-8 multibyte or wide character applications.

There is no ANSI wide character version of this function. The parameters will have to be converted to multibyte UTF-8 characters and then the printf_size function can be used.

Recommended Replacements*

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

ANSI Custom Print Formatting Functions

 

Lingoport internationalization and localization services and software