1
/* $Id: ncbi_priv.c,v 6.1 2000/03/24 22:53:35 vakatov Exp $
2
* ===========================================================================
5
* National Center for Biotechnology Information
7
* This software/database is a "United States Government Work" under the
8
* terms of the United States Copyright Act. It was written as part of
9
* the author's official duties as a United States Government employee and
10
* thus cannot be copyrighted. This software/database is freely available
11
* to the public for use. The National Library of Medicine and the U.S.
12
* Government have not placed any restriction on its use or reproduction.
14
* Although all reasonable efforts have been taken to ensure the accuracy
15
* and reliability of the software and data, the NLM and the U.S.
16
* Government do not and cannot warrant the performance or results that
17
* may be obtained by using this software or data. The NLM and the U.S.
18
* Government disclaim all warranties, express or implied, including
19
* warranties of performance, merchantability or fitness for any particular
22
* Please cite the author in any work or product based on this material.
24
* ===========================================================================
26
* Author: Denis Vakatov
29
* Private aux. code for the "ncbi_*.[ch]"
31
* ---------------------------------------------------------------------------
32
* $Log: ncbi_priv.c,v $
33
* Revision 6.1 2000/03/24 22:53:35 vakatov
36
* ===========================================================================
39
#include "ncbi_priv.h"
46
MT_LOCK g_CORE_MT_Lock;
51
extern const char* g_CORE_Sprintf(const char* fmt, ...)
54
static char str[4096];
58
vsprintf(str, fmt, args);
59
assert(strlen(str) < sizeof(str));
65
extern char* g_CORE_RegistryGET
70
const char* def_value)
74
ret_value = REG_Get(g_CORE_Registry,
75
section, name, value, value_size, def_value);