NCBI C++ ToolKit
Functions
locale.c File Reference
#include <config.h>
#include <stdarg.h>
#include <stdio.h>
#include <ctype.h>
#include <freetds/tds.h>
#include <freetds/configs.h>
#include "replacements.h"
+ Include dependency graph for locale.c:

Go to the source code of this file.

Go to the SVN repository for this file.

Functions

static void tds_parse_locale (const char *option, const char *value, void *param)
 
TDSLOCALEtds_get_locale (void)
 Get locale information. More...
 

Function Documentation

◆ tds_get_locale()

TDSLOCALE* tds_get_locale ( void  )

Get locale information.

Returns
allocated structure with all information or NULL if error

Definition at line 50 of file locale.c.

References buf, FREETDS_LOCALECONFFILE, in(), locale, NULL, strlcpy, tds_alloc_locale, TDS_DBG_INFO1, tds_parse_locale(), tds_read_conf_section, and tdsdump_log.

◆ tds_parse_locale()

static void tds_parse_locale ( const char *  option,
const char *  value,
void *  param 
)
static

Definition at line 111 of file locale.c.

References free(), locale, option, util::strcmp(), strdup, TDS_STR_CHARSET, TDS_STR_DATEFMT, TDS_STR_LANGUAGE, and value.

Referenced by tds_get_locale().

Modified on Mon Mar 04 05:13:50 2024 by modify_doxy.py rev. 669887