1<!-- Creator : groff version 1.18.1 --> 2<!-- CreationDate: Sat Feb 24 18:37:16 2007 --> 3<html> 4<head> 5<meta name="generator" content="groff -Thtml, see www.gnu.org"> 6<meta name="Content-Style" content="text/css"> 7<title>MEMORY</title> 8</head> 9<body> 10 11<h1 align=center>MEMORY</h1> 12<a href="#NAME">NAME</a><br> 13<a href="#SYNOPSIS">SYNOPSIS</a><br> 14<a href="#DESCRIPTION">DESCRIPTION</a><br> 15<a href="#DIAGNOSTICS">DIAGNOSTICS</a><br> 16<a href="#SEE ALSO">SEE ALSO</a><br> 17 18<hr> 19<a name="NAME"></a> 20<h2>NAME</h2> 21<!-- INDENTATION --> 22<table width="100%" border=0 rules="none" frame="void" 23 cols="2" cellspacing="0" cellpadding="0"> 24<tr valign="top" align="left"> 25<td width="8%"></td> 26<td width="91%"> 27<p>_TIFFmalloc, _TIFFrealloc, _TIFFfree, _TIFFmemset, 28_TIFFmemcpy, _TIFFmemcmp, − memory management-related 29functions for use with <small>TIFF</small> files</p> 30</td> 31</table> 32<a name="SYNOPSIS"></a> 33<h2>SYNOPSIS</h2> 34<!-- INDENTATION --> 35<table width="100%" border=0 rules="none" frame="void" 36 cols="2" cellspacing="0" cellpadding="0"> 37<tr valign="top" align="left"> 38<td width="8%"></td> 39<td width="91%"> 40<p><b>#include <tiffio.h></b></p> 41<!-- INDENTATION --> 42<p><b>tdata_t _TIFFmalloc(tsize_t</b> <i>size</i><b>);<br> 43tdata_t _TIFFrealloc(tdata_t</b> <i>buffer</i><b>, 44tsize_t</b> <i>size</i><b>);<br> 45void _TIFFfree(tdata_t</b> <i>buffer</i><b>);<br> 46void _TIFFmemset(tdata_t</b> <i>s</i><b>, int</b> 47<i>c</i><b>, tsize_t</b> <i>n</i><b>);<br> 48void _TIFFmemcpy(tdata_t</b> <i>dest</i><b>, const 49tdata_t</b> <i>src</i><b>, tsize_t</b> <i>n</i><b>);<br> 50int _TIFFmemcmp(const tdata_t</b> <i>s1</i><b>, const 51tdata_t</b> <i>s2</i><b>, tsize_t</b> <i>n</i><b>);</b></p> 52</td> 53</table> 54<a name="DESCRIPTION"></a> 55<h2>DESCRIPTION</h2> 56<!-- INDENTATION --> 57<table width="100%" border=0 rules="none" frame="void" 58 cols="2" cellspacing="0" cellpadding="0"> 59<tr valign="top" align="left"> 60<td width="8%"></td> 61<td width="91%"> 62<p>These routines are provided for writing portable software 63that uses <i>libtiff</i>; they hide any memory-management 64related issues, such as dealing with segmented architectures 65found on 16-bit machines.</p> 66<!-- INDENTATION --> 67<p><i>_TIFFmalloc</i> and <i>_TIFFrealloc</i> are used to 68dynamically allocate and reallocate memory used by 69<i>libtiff</i>; such as memory passed into the I/O routines. 70Memory allocated through these interfaces is released back 71to the system using the <i>_TIFFfree</i> routine.</p> 72<!-- INDENTATION --> 73<p>Memory allocated through one of the above interfaces can 74be set to a known value using <i>_TIFFmemset</i>, copied to 75another memory location using <i>_TIFFmemcpy</i>, or 76compared for equality using <i>_TIFFmemcmp</i>. These 77routines conform to the equivalent <small>ANSI</small> C 78routines: <i>memset</i>, <i>memcpy</i>, and <i>memcmp</i>, 79repsectively.</p> 80</td> 81</table> 82<a name="DIAGNOSTICS"></a> 83<h2>DIAGNOSTICS</h2> 84<!-- INDENTATION --> 85<table width="100%" border=0 rules="none" frame="void" 86 cols="2" cellspacing="0" cellpadding="0"> 87<tr valign="top" align="left"> 88<td width="8%"></td> 89<td width="91%"> 90<p>None.</p> 91</td> 92</table> 93<a name="SEE ALSO"></a> 94<h2>SEE ALSO</h2> 95<!-- INDENTATION --> 96<table width="100%" border=0 rules="none" frame="void" 97 cols="2" cellspacing="0" cellpadding="0"> 98<tr valign="top" align="left"> 99<td width="8%"></td> 100<td width="91%"> 101<p><b>malloc</b>(3), <b>memory</b>(3), 102<b>libtiff</b>(3TIFF)</p> 103<!-- INDENTATION --> 104<p>Libtiff library home page: 105<b>http://www.simplesystems.org/libtiff/</b></p> 106</td> 107</table> 108<hr> 109</body> 110</html> 111