next up previous contents index
Next: Save calling environment Up: Numeric formatting convention Previous: Numeric formatting convention

The localeconv function

localeconv

The localeconv function gives a programmer access to information about how to format numeric quantities (monetary or otherwise). This sort of interface was considered preferable to defining conversion functions directly: even with a specified locale, the set of distinct formats that can be constructed from these elements is large, and the ones desired very application-dependent.

4 6 Nonlocal jumps<setjmp.h> <setjmp.h>

jmp_buf must be an array type for compatibility with existing practice: programs typically omit the address operator before a jmp_buf argument, even though a pointer to the argument is desired, not the value of the argument itself. Thus, a scalar or struct type is unsuitable. Note that a one-element array of the appropriate type is a valid definition.

setjmp is constrained to be a macro only: in some implementations the information necessary to restore context is only available while executing the function making the call to setjmp.

4 6 1


Pete Jinks
Fri Jan 19 12:31:56 GMT 1996