C localization functions: Difference between revisions

Content deleted Content added
Line 25:
The functions alter the behavior of printf/scanf/strtod which are often used to write saved data to a file or to other programs. The result is that a saved file in one locale will not be readable in another locale, or not be readable ''at all'' due to assumptions such as "numbers end at comma characters". Most large-scale software forces the locale to "C" (or another fixed value) to work around these problems.
FUNCTIONS
SYNTAX OF USING A FUNCTION:
syntax:
return_type function name(arguments list)
(i) return_type name of function()
arguments declaration;
{
local declaration;
body of function;
return (value);
}
 
TYPES OF FUNCTIONS
1.With No arguments and no return type: