ibm-information-center/dist/eclipse/plugins/i5OS.ic.apis_5.4.0.1/getl.htm

114 lines
3.0 KiB
HTML

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Copyright" content="Copyright (c) 2006 by IBM Corporation">
<title>_getlong()--Get Long Byte Quantities</title>
<!-- Begin Header Records ========================================== -->
<!-- All rights reserved. Licensed Materials Property of IBM -->
<!-- US Government Users Restricted Rights -->
<!-- Use, duplication or disclosure restricted by -->
<!-- GSA ADP Schedule Contract with IBM Corp. -->
<!-- Change History: -->
<!-- Unix8 SCRIPT J converted by B2H R4.1 (346) (CMS) by V2KEA304 -->
<!-- at RCHVMW2 on 17 Feb 1999 at 11:05:09 -->
<!-- Edited by Kersten Feb 02 -->
<link rel="stylesheet" type="text/css" href="../rzahg/ic.css">
</head>
<body>
<!--End Header Records -->
<!-- Java sync-link -->
<script type="text/javascript" language="Javascript" src="../rzahg/synch.js">
</script>
<a name="Top_Of_Page"></a>
<h2>_getlong()--Get Long Byte Quantities</h2>
<div class="box" style="width: 70%;">
<br>
&nbsp;&nbsp;Syntax<br>
<pre>
#include &lt;sys/types.h&gt;
#include &lt;netinet/in.h&gt;
#include &lt;arpa/nameser.h&gt;
#include &lt;resolv.h&gt;
unsigned long
_getlong(unsigned char *<em>message_pointer</em>)
</pre>
<br>
&nbsp;&nbsp;Threadsafe: Yes<br>
<!-- iddvc RMBR -->
<br>
</div>
<p>The <em>_getlong()</em> function is used to retrieve an unsigned long byte
quantity.</p>
<br>
<!-- Please NOTE: DO NOT DELETE THIS SECTION if this API has no authorities and locks. -->
<!-- Instead, use the commented out coding below to indicate NONE. -->
<h3>Authorities and Locks</h3>
<!-- Use this if there are no authorities and locks. -->
<p>None.</p>
<br>
<h3>Parameters</h3>
<dl>
<dt><strong>message_pointer</strong></dt>
<dd>(Input) The pointer where the long integer is to be received from.</dd>
</dl>
<br>
<h3>Return Value</h3>
<p><em>_getlong()</em> returns a 32-bit integer from where
<em>message_pointer</em> is pointing.</p>
<br>
<h3>Usage Notes</h3>
<ol>
<li>DNS packets have fields that are unsigned long integers (for example, TTL
and serial number). <em>_getlong()</em> picks these unsigned long integers out
of a DNS packet and returns them.</li>
</ol>
<br>
<h3>Related Information</h3>
<ul>
<li><a href="gets.htm">_getshort()</a>--Get Short Byte Quantities<br>
<br>
</li>
<li><a href="putl.htm">_putlong()</a>--Put Long Byte Quantities<br>
<br>
</li>
<li><a href="puts.htm">_putshort()</a>--Put Short Byte Quantities</li>
</ul>
<br>
<hr>
API introduced: V3R1
<hr>
<center>
<table cellpadding="2" cellspacing="2">
<tr align="center">
<td valign="middle" align="center"><a href="#Top_Of_Page">Top</a> | <a href=
"unix.htm">UNIX-Type APIs</a> | <a href="aplist.htm">APIs by category</a> </td>
</tr>
</table>
</center>
</body>
</html>