File: SQLGetConfigMode.c

package info (click to toggle)
unixodbc 2.3.14-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 6,888 kB
  • sloc: ansic: 87,605; makefile: 1,127; sh: 1,060; yacc: 974; sql: 1
file content (28 lines) | stat: -rw-r--r-- 684 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/**************************************************
 * SQLGetConfigMode
 *
 **************************************************
 * This code was created by Peter Harvey @ CodeByDesign.
 * Released under LGPL 28.JAN.99
 *
 * Contributions from...
 * -----------------------------------------------
 * Peter Harvey		- pharvey@codebydesign.com
 * Nick Gorham      - nick@lurcher.org
 **************************************************/
#include <config.h>
#include <stdlib.h>
#include <odbcinstext.h>

BOOL SQLGetConfigMode( UWORD *pnConfigMode )
{
    inst_logClear();

    __lock_config_mode();
    *pnConfigMode = __get_config_mode();
    __unlock_config_mode();

    return TRUE;
}