Languages

Fsharp
ActionScript
xBase
Clean
GPSS
PureBasic
Sieve
Erlang
JOVIAL
Mercury
Linda
DataFlex
PostScript
FoxPro2
VFP
Cobol
Prolog
Jython
Awk
VisualBasic
JavaScript
Matlab
ASP
Haskell
Csharp
D
Smalltalk
Nemerle
Pixilang
Java
SQL
Python
ObjectPascal
Ruby
Perl
Pascal
Assembler
PHP
C
Functions  Add function  Users  Registration  Enter   About  ASCII Table  Our helpers

setlocale in C

Declaration:
char *setlocale(int category, const char *locale);
Sets or reads location dependent information.

category can be one of the following: LC_ALL Set everything.
LC_COLLATE Affects strcoll and strxfrm functions.
LC_CTYPE Affects all character functions.
LC_MONETARY Affects the monetary information provided by localeconv function.
LC_NUMERIC Affects decimal-point formatting and the information provided by localeconv function.
LC_TIME Affects the strftime function.


A value of "C" for locale sets the locale to the normal C translation environment settings (default). A null value ("") sets the native environment settings. A null pointer (NULL) causes setlocale to return a pointer to the string associated with this category for the current settings (no changes occur). All other values are implementation-specific.

After a successful set, setlocale returns a pointer to a string which represents the previous location setting. On failure it returns NULL.

Example:
#include<locale.h>
#include<stdio.h>

int main(void)
{
char *old_locale;

old_locale=setlocale(LC_ALL,"C");
printf("The preivous setting was %s.\n",old_locale);
return 0;
}
Add by Pancho
You can edit it here
Adding comments is available only for registered users.

"Stocky Dragon" Dinosaur Terrorized Late Cretaceous Europe

Photo of the fossilized hindlimb of Balaur bondoc.

Paleontologists have discovered that a close relative of Velociraptor hunted the dwarfed inhabitants of Late Cretaceous Europe, an island landscape largely isolated from nearby continents.

While island animals tend to be smaller and more primitive than their continental cousins, the theropod Balaur bondoc was as large as its relatives on other parts of the globe, and demonstrated advanced adaptations including fused bones and two terrifyingly large claws on each hind ...

More at http://www.nsf.gov/news/news_summ.jsp?cntn_id=117592&WT.mc_id=USNSF_51&WT.mc_ev=click


This is an NSF News item.

PycckaR
BepcuR


Articles
Articles


Library
Library


Downloads
Downloads

Google Chrome Golf 6
 © Internet, books, teachers and Rudevich Alexander brains.