Obtenir la convention locale avec la fonction ‘localeconv()’

Author:


Download


  #include 
  #include 

  int main(void)
  {
    struct lconv *lc_info;

    lc_info = localeconv();

    printf("Symbole décimal: %sn", lc_info->decimal_point);
	printf("Le Symbole monétaire est %s les chiffres",(lc_info->p_cs_precedes?"avant":"après"));

    return 0;
  }

Leave a Reply

Your email address will not be published. Required fields are marked *