JezK
Edit File: a00530.html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> <meta http-equiv="X-UA-Compatible" content="IE=11"/> <meta name="generator" content="Doxygen 1.9.4"/> <meta name="viewport" content="width=device-width, initial-scale=1"/> <title>FreeTDS API: Internal bcp functions</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript" src="dynsections.js"></script> <link href="search/search.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="search/searchdata.js"></script> <script type="text/javascript" src="search/search.js"></script> <link href="doxygen.css" rel="stylesheet" type="text/css" /> </head> <body> <div id="top"><!-- do not remove this div, it is closed by doxygen! --> <div id="titlearea"> <table cellspacing="0" cellpadding="0"> <tbody> <tr id="projectrow"> <td id="projectalign"> <div id="projectname">FreeTDS API </div> </td> </tr> </tbody> </table> </div> <!-- end header part --> <!-- Generated by Doxygen 1.9.4 --> <script type="text/javascript"> /* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */ var searchBox = new SearchBox("searchBox", "search",'Search','.html'); /* @license-end */ </script> <script type="text/javascript" src="menudata.js"></script> <script type="text/javascript" src="menu.js"></script> <script type="text/javascript"> /* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */ $(function() { initMenu('',true,false,'search.php','Search'); $(document).ready(function() { init_search(); }); }); /* @license-end */ </script> <div id="main-nav"></div> </div><!-- top --> <!-- window showing the filter options --> <div id="MSearchSelectWindow" onmouseover="return searchBox.OnSearchSelectShow()" onmouseout="return searchBox.OnSearchSelectHide()" onkeydown="return searchBox.OnSearchSelectKey(event)"> </div> <!-- iframe showing the search results (closed by default) --> <div id="MSearchResultsWindow"> <iframe src="javascript:void(0)" frameborder="0" name="MSearchResults" id="MSearchResults"> </iframe> </div> <div class="header"> <div class="summary"> <a href="#func-members">Functions</a> </div> <div class="headertitle"><div class="title">Internal bcp functions<div class="ingroups"><a class="el" href="a00526.html">The db-lib API</a> » <a class="el" href="a00529.html">Bulk copy functions</a></div></div></div> </div><!--header--> <div class="contents"> <p>Static functions internal to the bcp library. <a href="#details">More...</a></p> <div class="dynheader"> Collaboration diagram for Internal bcp functions:</div> <div class="dyncontent"> <div class="center"><!-- SVG 0 --> </div> </div> <table class="memberdecls"> <tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="func-members" name="func-members"></a> Functions</h2></td></tr> <tr class="memitem:ga7370f1223f13510d6b33e98f2de09fb5"><td class="memItemLeft" align="right" valign="top">static RETCODE </td><td class="memItemRight" valign="bottom"><a class="el" href="a00530.html#ga7370f1223f13510d6b33e98f2de09fb5">_bcp_exec_in</a> (<a class="el" href="a00918.html">DBPROCESS</a> *dbproc, DBINT *rows_copied)</td></tr> <tr class="separator:ga7370f1223f13510d6b33e98f2de09fb5"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:gae67546338cb9542a4902aa914f57f314"><td class="memItemLeft" align="right" valign="top">static RETCODE </td><td class="memItemRight" valign="bottom"><a class="el" href="a00530.html#gae67546338cb9542a4902aa914f57f314">_bcp_exec_out</a> (<a class="el" href="a00918.html">DBPROCESS</a> *dbproc, DBINT *rows_copied)</td></tr> <tr class="separator:gae67546338cb9542a4902aa914f57f314"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:gab672799007e720bf918caa1b33c989ea"><td class="memItemLeft" align="right" valign="top">static char * </td><td class="memItemRight" valign="bottom"><a class="el" href="a00530.html#gab672799007e720bf918caa1b33c989ea">_bcp_fgets</a> (char *buffer, int size, FILE *f)</td></tr> <tr class="separator:gab672799007e720bf918caa1b33c989ea"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:gacf69ac4cbe8e3c3e6ea665e31e5e85b8"><td class="memItemLeft" align="right" valign="top">static void </td><td class="memItemRight" valign="bottom"><a class="el" href="a00530.html#gacf69ac4cbe8e3c3e6ea665e31e5e85b8">_bcp_free_columns</a> (<a class="el" href="a00918.html">DBPROCESS</a> *dbproc)</td></tr> <tr class="separator:gacf69ac4cbe8e3c3e6ea665e31e5e85b8"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:gaa134c1c3ccc4326e693adb8357272f1d"><td class="memItemLeft" align="right" valign="top">static void </td><td class="memItemRight" valign="bottom"><a class="el" href="a00530.html#gaa134c1c3ccc4326e693adb8357272f1d">_bcp_free_storage</a> (<a class="el" href="a00918.html">DBPROCESS</a> *dbproc)</td></tr> <tr class="separator:gaa134c1c3ccc4326e693adb8357272f1d"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:ga0f8def4cad04c5c1e27c2b653d482dd8"><td class="memItemLeft" align="right" valign="top">static TDSRET </td><td class="memItemRight" valign="bottom"><a class="el" href="a00530.html#ga0f8def4cad04c5c1e27c2b653d482dd8">_bcp_get_col_data</a> (<a class="el" href="a01222.html">TDSBCPINFO</a> *bcpinfo, <a class="el" href="a01150.html">TDSCOLUMN</a> *bindcol, int offset)</td></tr> <tr class="memdesc:ga0f8def4cad04c5c1e27c2b653d482dd8"><td class="mdescLeft"> </td><td class="mdescRight">For a bcp in from program variables, get the data from the host variable. <a href="a00530.html#ga0f8def4cad04c5c1e27c2b653d482dd8">More...</a><br /></td></tr> <tr class="separator:ga0f8def4cad04c5c1e27c2b653d482dd8"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:ga4f936fa1cb8e4373bf7b7f8a6ab96bc7"><td class="memItemLeft" align="right" valign="top">static int </td><td class="memItemRight" valign="bottom"><a class="el" href="a00530.html#ga4f936fa1cb8e4373bf7b7f8a6ab96bc7">_bcp_get_term_var</a> (const BYTE *pdata, const BYTE *term, int term_len)</td></tr> <tr class="memdesc:ga4f936fa1cb8e4373bf7b7f8a6ab96bc7"><td class="mdescLeft"> </td><td class="mdescRight">Get the data for bcp-in from program variables, where the program data have been identified as character terminated, <br /> This is a low-level, internal function. <a href="a00530.html#ga4f936fa1cb8e4373bf7b7f8a6ab96bc7">More...</a><br /></td></tr> <tr class="separator:ga4f936fa1cb8e4373bf7b7f8a6ab96bc7"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:ga1b57d952a9d72f375c3296124affa908"><td class="memItemLeft" align="right" valign="top">static STATUS </td><td class="memItemRight" valign="bottom"><a class="el" href="a00530.html#ga1b57d952a9d72f375c3296124affa908">_bcp_read_hostfile</a> (<a class="el" href="a00918.html">DBPROCESS</a> *dbproc, FILE *hostfile, int *row_error, bool skip)</td></tr> <tr class="separator:ga1b57d952a9d72f375c3296124affa908"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:gafc23d62bc86b38fb757e3ac4aadca0a4"><td class="memItemLeft" align="right" valign="top">static int </td><td class="memItemRight" valign="bottom"><a class="el" href="a00530.html#gafc23d62bc86b38fb757e3ac4aadca0a4">_bcp_readfmt_colinfo</a> (<a class="el" href="a00918.html">DBPROCESS</a> *dbproc, char *buf, <a class="el" href="a00894.html">BCP_HOSTCOLINFO</a> *ci)</td></tr> <tr class="separator:gafc23d62bc86b38fb757e3ac4aadca0a4"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:ga4d5be57b25a0654e2170fd656dc35489"><td class="memItemLeft" align="right" valign="top">static int </td><td class="memItemRight" valign="bottom"><a class="el" href="a00530.html#ga4d5be57b25a0654e2170fd656dc35489">rtrim</a> (char *str, int len)</td></tr> <tr class="memdesc:ga4d5be57b25a0654e2170fd656dc35489"><td class="mdescLeft"> </td><td class="mdescRight">trim a string of trailing blanks <a href="a00530.html#ga4d5be57b25a0654e2170fd656dc35489">More...</a><br /></td></tr> <tr class="separator:ga4d5be57b25a0654e2170fd656dc35489"><td class="memSeparator" colspan="2"> </td></tr> </table> <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2> <p >Static functions internal to the bcp library. </p> <p ><br /> </p> <h2 class="groupheader">Function Documentation</h2> <a id="ga7370f1223f13510d6b33e98f2de09fb5" name="ga7370f1223f13510d6b33e98f2de09fb5"></a> <h2 class="memtitle"><span class="permalink"><a href="#ga7370f1223f13510d6b33e98f2de09fb5">◆ </a></span>_bcp_exec_in()</h2> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">static RETCODE _bcp_exec_in </td> <td>(</td> <td class="paramtype"><a class="el" href="a00918.html">DBPROCESS</a> * </td> <td class="paramname"><em>dbproc</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">DBINT * </td> <td class="paramname"><em>rows_copied</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">static</span></span> </td> </tr> </table> </div><div class="memdoc"> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">dbproc</td><td>contains all information needed by db-lib to manage communications with the server. </td></tr> <tr><td class="paramname">rows_copied</td><td></td></tr> </table> </dd> </dl> <dl class="section return"><dt>Returns</dt><dd>SUCCEED or FAIL. </dd></dl> <dl class="section see"><dt>See also</dt><dd>BCP_SETL(), <a class="el" href="a00529.html#gaa23f8e5c7f437a94746c90292dd1cb01" title="Commit a set of rows to the table.">bcp_batch()</a>, <a class="el" href="a00529.html#ga6cf03708baaf02eb016b9ee77160d879" title="Bind a program host variable to a database column.">bcp_bind()</a>, <a class="el" href="a00529.html#ga0ed03c69e698336d015bb315ad755fd5" title="Specify the format of a datafile prior to writing to a table.">bcp_colfmt()</a>, <a class="el" href="a00529.html#gaf13b2bb12b4200752718f3a3face3870" title="Specify the format of a host file for bulk copy purposes, with precision and scale support for numeri...">bcp_colfmt_ps()</a>, <a class="el" href="a00529.html#gae41d196a22c544d66212dacc5b555791" title="Set the length of a host variable to be written to a table.">bcp_collen()</a>, <a class="el" href="a00529.html#ga6498235e4ef8e41ea43b01494b28998d" title="Override bcp_bind() by pointing to a different host variable.">bcp_colptr()</a>, <a class="el" href="a00529.html#ga330b9f1028f856a9eec5115550bcb4f7" title="Indicate how many columns are to be found in the datafile.">bcp_columns()</a>, <a class="el" href="a00529.html#ga244547855b41788fa3a67756956fbc81" title="Set BCP options for uploading a datafile.">bcp_control()</a>, <a class="el" href="a00529.html#ga8b85f79f53a62ac7a728fe626d609b65" title="Conclude the transfer of data from program variables.">bcp_done()</a>, <a class="el" href="a00529.html#ga7a184158b27a50f713e9cfae3b746209" title="Write a datafile to a table.">bcp_exec()</a>, <a class="el" href="a00529.html#ga220f6b043602da1028f98dacb2fd00c0" title="See if BCP_SETL() was used to set the LOGINREC for BCP work.">bcp_getl()</a>, <a class="el" href="a00529.html#gada8e987c4a6225b9276c05ba3a4f47a0" title="Prepare for bulk copy operation on a table.">bcp_init()</a>, bcp_moretext(), <a class="el" href="a00529.html#gafec3feb5bac1cb33545ba01efb0a67b8" title="Set "hints" for uploading a file.">bcp_options()</a>, <a class="el" href="a00529.html#ga963c5e38bca7668afc57f5cc123d10fb" title="Read a format definition file.">bcp_readfmt()</a>, <a class="el" href="a00529.html#gaf1130ac97f6af55e86ec70b0aa4f5b40" title="Write data in host variables to the table.">bcp_sendrow()</a> </dd></dl> <div class="dynheader"> Here is the call graph for this function:</div> <div class="dyncontent"> <div class="center"><!-- SVG 1 --> </div> </div> </div> </div> <a id="gae67546338cb9542a4902aa914f57f314" name="gae67546338cb9542a4902aa914f57f314"></a> <h2 class="memtitle"><span class="permalink"><a href="#gae67546338cb9542a4902aa914f57f314">◆ </a></span>_bcp_exec_out()</h2> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">static RETCODE _bcp_exec_out </td> <td>(</td> <td class="paramtype"><a class="el" href="a00918.html">DBPROCESS</a> * </td> <td class="paramname"><em>dbproc</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">DBINT * </td> <td class="paramname"><em>rows_copied</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">static</span></span> </td> </tr> </table> </div><div class="memdoc"> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">dbproc</td><td>contains all information needed by db-lib to manage communications with the server. </td></tr> <tr><td class="paramname">rows_copied</td><td></td></tr> </table> </dd> </dl> <dl class="section return"><dt>Returns</dt><dd>SUCCEED or FAIL. </dd></dl> <dl class="section see"><dt>See also</dt><dd>BCP_SETL(), <a class="el" href="a00529.html#gaa23f8e5c7f437a94746c90292dd1cb01" title="Commit a set of rows to the table.">bcp_batch()</a>, <a class="el" href="a00529.html#ga6cf03708baaf02eb016b9ee77160d879" title="Bind a program host variable to a database column.">bcp_bind()</a>, <a class="el" href="a00529.html#ga0ed03c69e698336d015bb315ad755fd5" title="Specify the format of a datafile prior to writing to a table.">bcp_colfmt()</a>, <a class="el" href="a00529.html#gaf13b2bb12b4200752718f3a3face3870" title="Specify the format of a host file for bulk copy purposes, with precision and scale support for numeri...">bcp_colfmt_ps()</a>, <a class="el" href="a00529.html#gae41d196a22c544d66212dacc5b555791" title="Set the length of a host variable to be written to a table.">bcp_collen()</a>, <a class="el" href="a00529.html#ga6498235e4ef8e41ea43b01494b28998d" title="Override bcp_bind() by pointing to a different host variable.">bcp_colptr()</a>, <a class="el" href="a00529.html#ga330b9f1028f856a9eec5115550bcb4f7" title="Indicate how many columns are to be found in the datafile.">bcp_columns()</a>, <a class="el" href="a00529.html#ga244547855b41788fa3a67756956fbc81" title="Set BCP options for uploading a datafile.">bcp_control()</a>, <a class="el" href="a00529.html#ga8b85f79f53a62ac7a728fe626d609b65" title="Conclude the transfer of data from program variables.">bcp_done()</a>, <a class="el" href="a00529.html#ga7a184158b27a50f713e9cfae3b746209" title="Write a datafile to a table.">bcp_exec()</a>, <a class="el" href="a00529.html#ga220f6b043602da1028f98dacb2fd00c0" title="See if BCP_SETL() was used to set the LOGINREC for BCP work.">bcp_getl()</a>, <a class="el" href="a00529.html#gada8e987c4a6225b9276c05ba3a4f47a0" title="Prepare for bulk copy operation on a table.">bcp_init()</a>, bcp_moretext(), <a class="el" href="a00529.html#gafec3feb5bac1cb33545ba01efb0a67b8" title="Set "hints" for uploading a file.">bcp_options()</a>, <a class="el" href="a00529.html#ga963c5e38bca7668afc57f5cc123d10fb" title="Read a format definition file.">bcp_readfmt()</a>, <a class="el" href="a00529.html#gaf1130ac97f6af55e86ec70b0aa4f5b40" title="Write data in host variables to the table.">bcp_sendrow()</a> </dd></dl> </div> </div> <a id="gab672799007e720bf918caa1b33c989ea" name="gab672799007e720bf918caa1b33c989ea"></a> <h2 class="memtitle"><span class="permalink"><a href="#gab672799007e720bf918caa1b33c989ea">◆ </a></span>_bcp_fgets()</h2> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">static char * _bcp_fgets </td> <td>(</td> <td class="paramtype">char * </td> <td class="paramname"><em>buffer</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">int </td> <td class="paramname"><em>size</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">FILE * </td> <td class="paramname"><em>f</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">static</span></span> </td> </tr> </table> </div><div class="memdoc"> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">buffer</td><td></td></tr> <tr><td class="paramname">size</td><td></td></tr> <tr><td class="paramname">f</td><td></td></tr> </table> </dd> </dl> <dl class="section return"><dt>Returns</dt><dd>SUCCEED or FAIL. </dd></dl> <dl class="section see"><dt>See also</dt><dd>BCP_SETL(), <a class="el" href="a00529.html#gaa23f8e5c7f437a94746c90292dd1cb01" title="Commit a set of rows to the table.">bcp_batch()</a>, <a class="el" href="a00529.html#ga6cf03708baaf02eb016b9ee77160d879" title="Bind a program host variable to a database column.">bcp_bind()</a>, <a class="el" href="a00529.html#ga0ed03c69e698336d015bb315ad755fd5" title="Specify the format of a datafile prior to writing to a table.">bcp_colfmt()</a>, <a class="el" href="a00529.html#gaf13b2bb12b4200752718f3a3face3870" title="Specify the format of a host file for bulk copy purposes, with precision and scale support for numeri...">bcp_colfmt_ps()</a>, <a class="el" href="a00529.html#gae41d196a22c544d66212dacc5b555791" title="Set the length of a host variable to be written to a table.">bcp_collen()</a>, <a class="el" href="a00529.html#ga6498235e4ef8e41ea43b01494b28998d" title="Override bcp_bind() by pointing to a different host variable.">bcp_colptr()</a>, <a class="el" href="a00529.html#ga330b9f1028f856a9eec5115550bcb4f7" title="Indicate how many columns are to be found in the datafile.">bcp_columns()</a>, <a class="el" href="a00529.html#ga244547855b41788fa3a67756956fbc81" title="Set BCP options for uploading a datafile.">bcp_control()</a>, <a class="el" href="a00529.html#ga8b85f79f53a62ac7a728fe626d609b65" title="Conclude the transfer of data from program variables.">bcp_done()</a>, <a class="el" href="a00529.html#ga7a184158b27a50f713e9cfae3b746209" title="Write a datafile to a table.">bcp_exec()</a>, <a class="el" href="a00529.html#ga220f6b043602da1028f98dacb2fd00c0" title="See if BCP_SETL() was used to set the LOGINREC for BCP work.">bcp_getl()</a>, <a class="el" href="a00529.html#gada8e987c4a6225b9276c05ba3a4f47a0" title="Prepare for bulk copy operation on a table.">bcp_init()</a>, bcp_moretext(), <a class="el" href="a00529.html#gafec3feb5bac1cb33545ba01efb0a67b8" title="Set "hints" for uploading a file.">bcp_options()</a>, <a class="el" href="a00529.html#ga963c5e38bca7668afc57f5cc123d10fb" title="Read a format definition file.">bcp_readfmt()</a>, <a class="el" href="a00529.html#gaf1130ac97f6af55e86ec70b0aa4f5b40" title="Write data in host variables to the table.">bcp_sendrow()</a> </dd></dl> </div> </div> <a id="gacf69ac4cbe8e3c3e6ea665e31e5e85b8" name="gacf69ac4cbe8e3c3e6ea665e31e5e85b8"></a> <h2 class="memtitle"><span class="permalink"><a href="#gacf69ac4cbe8e3c3e6ea665e31e5e85b8">◆ </a></span>_bcp_free_columns()</h2> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">static void _bcp_free_columns </td> <td>(</td> <td class="paramtype"><a class="el" href="a00918.html">DBPROCESS</a> * </td> <td class="paramname"><em>dbproc</em></td><td>)</td> <td></td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">static</span></span> </td> </tr> </table> </div><div class="memdoc"> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">dbproc</td><td>contains all information needed by db-lib to manage communications with the server. </td></tr> </table> </dd> </dl> <div class="dynheader"> Here is the call graph for this function:</div> <div class="dyncontent"> <div class="center"><!-- SVG 2 --> </div> </div> </div> </div> <a id="gaa134c1c3ccc4326e693adb8357272f1d" name="gaa134c1c3ccc4326e693adb8357272f1d"></a> <h2 class="memtitle"><span class="permalink"><a href="#gaa134c1c3ccc4326e693adb8357272f1d">◆ </a></span>_bcp_free_storage()</h2> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">static void _bcp_free_storage </td> <td>(</td> <td class="paramtype"><a class="el" href="a00918.html">DBPROCESS</a> * </td> <td class="paramname"><em>dbproc</em></td><td>)</td> <td></td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">static</span></span> </td> </tr> </table> </div><div class="memdoc"> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">dbproc</td><td>contains all information needed by db-lib to manage communications with the server.</td></tr> </table> </dd> </dl> <dl class="section see"><dt>See also</dt><dd><a class="el" href="a00529.html#ga8b85f79f53a62ac7a728fe626d609b65" title="Conclude the transfer of data from program variables.">bcp_done()</a>, <a class="el" href="a00529.html#ga7a184158b27a50f713e9cfae3b746209" title="Write a datafile to a table.">bcp_exec()</a>, <a class="el" href="a00529.html#gada8e987c4a6225b9276c05ba3a4f47a0" title="Prepare for bulk copy operation on a table.">bcp_init()</a> </dd></dl> <div class="dynheader"> Here is the call graph for this function:</div> <div class="dyncontent"> <div class="center"><!-- SVG 3 --> </div> </div> </div> </div> <a id="ga0f8def4cad04c5c1e27c2b653d482dd8" name="ga0f8def4cad04c5c1e27c2b653d482dd8"></a> <h2 class="memtitle"><span class="permalink"><a href="#ga0f8def4cad04c5c1e27c2b653d482dd8">◆ </a></span>_bcp_get_col_data()</h2> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">static TDSRET _bcp_get_col_data </td> <td>(</td> <td class="paramtype"><a class="el" href="a01222.html">TDSBCPINFO</a> * </td> <td class="paramname"><em>bcpinfo</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="a01150.html">TDSCOLUMN</a> * </td> <td class="paramname"><em>bindcol</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">int </td> <td class="paramname"><em>offset</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">static</span></span> </td> </tr> </table> </div><div class="memdoc"> <p>For a bcp in from program variables, get the data from the host variable. </p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">dbproc</td><td>contains all information needed by db-lib to manage communications with the server. </td></tr> <tr><td class="paramname">bindcol</td><td></td></tr> </table> </dd> </dl> <dl class="section return"><dt>Returns</dt><dd>TDS_SUCCESS or TDS_FAIL. </dd></dl> <dl class="section see"><dt>See also</dt><dd>_bcp_add_fixed_columns, _bcp_add_variable_columns, _bcp_send_bcp_record </dd></dl> <div class="dynheader"> Here is the call graph for this function:</div> <div class="dyncontent"> <div class="center"><!-- SVG 4 --> </div> </div> </div> </div> <a id="ga4f936fa1cb8e4373bf7b7f8a6ab96bc7" name="ga4f936fa1cb8e4373bf7b7f8a6ab96bc7"></a> <h2 class="memtitle"><span class="permalink"><a href="#ga4f936fa1cb8e4373bf7b7f8a6ab96bc7">◆ </a></span>_bcp_get_term_var()</h2> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">static int _bcp_get_term_var </td> <td>(</td> <td class="paramtype">const BYTE * </td> <td class="paramname"><em>pdata</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const BYTE * </td> <td class="paramname"><em>term</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">int </td> <td class="paramname"><em>term_len</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">static</span></span> </td> </tr> </table> </div><div class="memdoc"> <p>Get the data for bcp-in from program variables, where the program data have been identified as character terminated, <br /> This is a low-level, internal function. </p> <p >Call it correctly. <br /> </p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">pdata</td><td></td></tr> <tr><td class="paramname">term</td><td></td></tr> <tr><td class="paramname">term_len</td><td></td></tr> </table> </dd> </dl> <dl class="section return"><dt>Returns</dt><dd>data length. </dd></dl> </div> </div> <a id="ga1b57d952a9d72f375c3296124affa908" name="ga1b57d952a9d72f375c3296124affa908"></a> <h2 class="memtitle"><span class="permalink"><a href="#ga1b57d952a9d72f375c3296124affa908">◆ </a></span>_bcp_read_hostfile()</h2> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">static STATUS _bcp_read_hostfile </td> <td>(</td> <td class="paramtype"><a class="el" href="a00918.html">DBPROCESS</a> * </td> <td class="paramname"><em>dbproc</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">FILE * </td> <td class="paramname"><em>hostfile</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">int * </td> <td class="paramname"><em>row_error</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">bool </td> <td class="paramname"><em>skip</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">static</span></span> </td> </tr> </table> </div><div class="memdoc"> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">dbproc</td><td>contains all information needed by db-lib to manage communications with the server. </td></tr> <tr><td class="paramname">hostfile</td><td></td></tr> <tr><td class="paramname">row_error</td><td></td></tr> </table> </dd> </dl> <dl class="section return"><dt>Returns</dt><dd>MORE_ROWS, NO_MORE_ROWS, or FAIL. </dd></dl> <dl class="section see"><dt>See also</dt><dd>BCP_SETL(), <a class="el" href="a00529.html#gaa23f8e5c7f437a94746c90292dd1cb01" title="Commit a set of rows to the table.">bcp_batch()</a>, <a class="el" href="a00529.html#ga6cf03708baaf02eb016b9ee77160d879" title="Bind a program host variable to a database column.">bcp_bind()</a>, <a class="el" href="a00529.html#ga0ed03c69e698336d015bb315ad755fd5" title="Specify the format of a datafile prior to writing to a table.">bcp_colfmt()</a>, <a class="el" href="a00529.html#gaf13b2bb12b4200752718f3a3face3870" title="Specify the format of a host file for bulk copy purposes, with precision and scale support for numeri...">bcp_colfmt_ps()</a>, <a class="el" href="a00529.html#gae41d196a22c544d66212dacc5b555791" title="Set the length of a host variable to be written to a table.">bcp_collen()</a>, <a class="el" href="a00529.html#ga6498235e4ef8e41ea43b01494b28998d" title="Override bcp_bind() by pointing to a different host variable.">bcp_colptr()</a>, <a class="el" href="a00529.html#ga330b9f1028f856a9eec5115550bcb4f7" title="Indicate how many columns are to be found in the datafile.">bcp_columns()</a>, <a class="el" href="a00529.html#ga244547855b41788fa3a67756956fbc81" title="Set BCP options for uploading a datafile.">bcp_control()</a>, <a class="el" href="a00529.html#ga8b85f79f53a62ac7a728fe626d609b65" title="Conclude the transfer of data from program variables.">bcp_done()</a>, <a class="el" href="a00529.html#ga7a184158b27a50f713e9cfae3b746209" title="Write a datafile to a table.">bcp_exec()</a>, <a class="el" href="a00529.html#ga220f6b043602da1028f98dacb2fd00c0" title="See if BCP_SETL() was used to set the LOGINREC for BCP work.">bcp_getl()</a>, <a class="el" href="a00529.html#gada8e987c4a6225b9276c05ba3a4f47a0" title="Prepare for bulk copy operation on a table.">bcp_init()</a>, bcp_moretext(), <a class="el" href="a00529.html#gafec3feb5bac1cb33545ba01efb0a67b8" title="Set "hints" for uploading a file.">bcp_options()</a>, <a class="el" href="a00529.html#ga963c5e38bca7668afc57f5cc123d10fb" title="Read a format definition file.">bcp_readfmt()</a>, <a class="el" href="a00529.html#gaf1130ac97f6af55e86ec70b0aa4f5b40" title="Write data in host variables to the table.">bcp_sendrow()</a> </dd></dl> <div class="dynheader"> Here is the call graph for this function:</div> <div class="dyncontent"> <div class="center"><!-- SVG 5 --> </div> </div> </div> </div> <a id="gafc23d62bc86b38fb757e3ac4aadca0a4" name="gafc23d62bc86b38fb757e3ac4aadca0a4"></a> <h2 class="memtitle"><span class="permalink"><a href="#gafc23d62bc86b38fb757e3ac4aadca0a4">◆ </a></span>_bcp_readfmt_colinfo()</h2> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">static int _bcp_readfmt_colinfo </td> <td>(</td> <td class="paramtype"><a class="el" href="a00918.html">DBPROCESS</a> * </td> <td class="paramname"><em>dbproc</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">char * </td> <td class="paramname"><em>buf</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="a00894.html">BCP_HOSTCOLINFO</a> * </td> <td class="paramname"><em>ci</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">static</span></span> </td> </tr> </table> </div><div class="memdoc"> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">dbproc</td><td>contains all information needed by db-lib to manage communications with the server. </td></tr> <tr><td class="paramname">buf</td><td></td></tr> <tr><td class="paramname">ci</td><td></td></tr> </table> </dd> </dl> <dl class="section return"><dt>Returns</dt><dd>SUCCEED or FAIL. </dd></dl> <dl class="section see"><dt>See also</dt><dd>BCP_SETL(), <a class="el" href="a00529.html#gaa23f8e5c7f437a94746c90292dd1cb01" title="Commit a set of rows to the table.">bcp_batch()</a>, <a class="el" href="a00529.html#ga6cf03708baaf02eb016b9ee77160d879" title="Bind a program host variable to a database column.">bcp_bind()</a>, <a class="el" href="a00529.html#ga0ed03c69e698336d015bb315ad755fd5" title="Specify the format of a datafile prior to writing to a table.">bcp_colfmt()</a>, <a class="el" href="a00529.html#gaf13b2bb12b4200752718f3a3face3870" title="Specify the format of a host file for bulk copy purposes, with precision and scale support for numeri...">bcp_colfmt_ps()</a>, <a class="el" href="a00529.html#gae41d196a22c544d66212dacc5b555791" title="Set the length of a host variable to be written to a table.">bcp_collen()</a>, <a class="el" href="a00529.html#ga6498235e4ef8e41ea43b01494b28998d" title="Override bcp_bind() by pointing to a different host variable.">bcp_colptr()</a>, <a class="el" href="a00529.html#ga330b9f1028f856a9eec5115550bcb4f7" title="Indicate how many columns are to be found in the datafile.">bcp_columns()</a>, <a class="el" href="a00529.html#ga244547855b41788fa3a67756956fbc81" title="Set BCP options for uploading a datafile.">bcp_control()</a>, <a class="el" href="a00529.html#ga8b85f79f53a62ac7a728fe626d609b65" title="Conclude the transfer of data from program variables.">bcp_done()</a>, <a class="el" href="a00529.html#ga7a184158b27a50f713e9cfae3b746209" title="Write a datafile to a table.">bcp_exec()</a>, <a class="el" href="a00529.html#ga220f6b043602da1028f98dacb2fd00c0" title="See if BCP_SETL() was used to set the LOGINREC for BCP work.">bcp_getl()</a>, <a class="el" href="a00529.html#gada8e987c4a6225b9276c05ba3a4f47a0" title="Prepare for bulk copy operation on a table.">bcp_init()</a>, bcp_moretext(), <a class="el" href="a00529.html#gafec3feb5bac1cb33545ba01efb0a67b8" title="Set "hints" for uploading a file.">bcp_options()</a>, <a class="el" href="a00529.html#ga963c5e38bca7668afc57f5cc123d10fb" title="Read a format definition file.">bcp_readfmt()</a>, <a class="el" href="a00529.html#gaf1130ac97f6af55e86ec70b0aa4f5b40" title="Write data in host variables to the table.">bcp_sendrow()</a> </dd></dl> <div class="dynheader"> Here is the call graph for this function:</div> <div class="dyncontent"> <div class="center"><!-- SVG 6 --> </div> </div> </div> </div> <a id="ga4d5be57b25a0654e2170fd656dc35489" name="ga4d5be57b25a0654e2170fd656dc35489"></a> <h2 class="memtitle"><span class="permalink"><a href="#ga4d5be57b25a0654e2170fd656dc35489">◆ </a></span>rtrim()</h2> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">static int rtrim </td> <td>(</td> <td class="paramtype">char * </td> <td class="paramname"><em>str</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">int </td> <td class="paramname"><em>len</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">static</span></span> </td> </tr> </table> </div><div class="memdoc"> <p>trim a string of trailing blanks </p> <p >Replaces spaces at the end of a string with NULs </p><dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">str</td><td>pointer to a character buffer (not null-terminated) </td></tr> <tr><td class="paramname">len</td><td>size of the <em>str</em> in bytes</td></tr> </table> </dd> </dl> <dl class="section return"><dt>Returns</dt><dd>modified length </dd></dl> </div> </div> </div><!-- contents --> <!-- start footer part --> <hr class="footer"/><address class="footer"><small> Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.4 </small></address> </body> </html>