10139N/A<!
DOCTYPE REFENTRY PUBLIC "-//Sun Microsystems//DTD DocBook V3.0-Based SolBook Subset V2.0//EN" [
10139N/A<!--ArborText, Inc., 1988-1999, v.4002-->
10139N/A<!
ENTITY suncopy "Copyright (c) 2004, Sun Microsystems, Inc. All Rights Reserved.">
10139N/A<
refentry id="TIFFmemory-3tiff">
10139N/A<
refmeta><
refentrytitle>TIFFmemory</
refentrytitle><
manvolnum>3tiff</
manvolnum>
10139N/A<
refmiscinfo class="date">05 Apr 2004</
refmiscinfo>
10139N/A<
refmiscinfo class="sectdesc">&man3;</
refmiscinfo>
10139N/A<
refmiscinfo class="software">&release;</
refmiscinfo>
10139N/A<
refmiscinfo class="arch">generic</
refmiscinfo>
10139N/A<
refmiscinfo class="copyright">&suncopy;</
refmiscinfo>
10139N/A<
indexterm><
primary>TIFFmalloc</
primary></
indexterm><
indexterm><
primary>TIFFrealloc
10139N/A</
primary></
indexterm><
indexterm><
primary>TIFFfree</
primary></
indexterm><
indexterm>
10139N/A<
primary>TIFFmemset</
primary></
indexterm><
indexterm><
primary>TIFFmemcpy</
primary>
10139N/A</
indexterm><
indexterm><
primary>TIFFmemcmp</
primary></
indexterm><
indexterm>
10139N/A<
primary>memory-management-related functions for use with TIFF files</
primary>
10139N/A<
refnamediv id="TIFFmemory-3tiff-name"><
refdescriptor>TIFFmemory</
refdescriptor>
10139N/A<
refname>_TIFFmalloc</
refname><
refname>_TIFFrealloc</
refname><
refname>_TIFFfree
10139N/A</
refname><
refname>_TIFFmemset</
refname><
refname>_TIFFmemcpy</
refname><
refname>
10139N/A_TIFFmemcmp</
refname><
refpurpose>memory-management-related functions for use
10139N/Awith TIFF files</
refpurpose></
refnamediv>
10139N/A<
refsect1 id="TIFFmemory-3tiff-synp"><
title>&synp-tt;<?
Pub Caret></
title>
10139N/Atdata_t _TIFFrealloc(tdata_t, tsize_t);
10139N/Avoid _TIFFmemset(tdata_t, int, tsize_t);
10139N/Avoid _TIFFmemcpy(tdata_t, const tdata_t, tsize_t);
10139N/Aint _TIFFmemcmp(const tdata_t, const tdata_t, tsize_t);</
programlisting>
10139N/A<
refsect1 id="TIFFmemory-3tiff-desc"><
title>&desc-tt;</
title>
10139N/A<
para>These routines are provided for writing portable software that uses <
literal>
10139N/Alibtiff</
literal>. The routines hide any memory-management-related issues,
10139N/Asuch as dealing with segmented architectures found on 16-bit machines.</
para>
10139N/A<
para><
literal>_TIFFmalloc</
literal> and <
literal>_TIFFrealloc</
literal> are
10139N/Aused to dynamically allocate and reallocate memory used by <
literal>libtiff
10139N/A</
literal>, such as memory passed into the I/O routines.</
para>
10139N/A<
para>Memory allocated through these interfaces is released back to the system
10139N/Ausing the <
literal>_TIFFfree</
literal> routine. Memory allocated through one
10139N/Aof the above interfaces can be set to a known value using <
literal>_TIFFmemset
10139N/A</
literal>, copied to another memory location using <
literal>_TIFFmemcpy</
literal>,
10139N/Aor compared for equality using <
literal>_TIFFmemcmp</
literal>. These routines
10139N/Aconform to the equivalent ANSI C routines: <
literal>memset</
literal>, <
literal>
10139N/Amemcpy</
literal>, and <
literal>memcmp</
literal>, respectively.</
para>
10139N/A<
refsect1 id="TIFFmemory-3tiff-attr"><
title>&attr-tt;</
title>
10139N/A<
para>See <
olink targetdocent="REFMAN5" localinfo="attributes-5"><
citerefentry>
10139N/A<
refentrytitle>attributes</
refentrytitle><
manvolnum>5</
manvolnum></
citerefentry></
olink>
10139N/Afor descriptions of the following attributes:</
para>
10139N/A<
tgroup cols="2" colsep="1" rowsep="1"><
colspec colname="COLSPEC0" colwidth="1*">
10139N/A<
colspec colname="COLSPEC1" colwidth="1*">
10139N/A<
row><
entry align="center" valign="middle">ATTRIBUTE TYPE</
entry><
entry align="center" 10139N/Avalign="middle">ATTRIBUTE VALUE</
entry></
row>
10139N/A<
row><
entry><
para>Availability</
para></
entry><
entry><
para>SUNWTiff</
para></
entry>
10139N/A<
row><
entry colname="COLSPEC0"><
para>Interface stability</
para></
entry><
entry 10139N/Acolname="COLSPEC1"><
para>Evolving</
para></
entry></
row>
10139N/A<
refsect1 id="TIFFmemory-3tiff-also"><
title>&also-tt;</
title>
10139N/A<!--Reference to another man page--> 10139N/A<!--Reference to a Help manual--> 10139N/A<
para><
citerefentry><
refentrytitle>libtiff</
refentrytitle><
manvolnum>3</
manvolnum>
10139N/A</
citerefentry>, <
citerefentry><
refentrytitle>malloc</
refentrytitle><
manvolnum>
10139N/A3C</
manvolnum></
citerefentry>, <
citerefentry><
refentrytitle>memory</
refentrytitle>
10139N/A<
manvolnum>3C</
manvolnum></
citerefentry></
para>
10139N/A<
refsect1 id="TIFFmemory-3tiff-note"><
title>¬e-tt;</
title>
10139N/A<
para>This man page was originally written by Sam Leffler. Updated by Breda
10139N/AMcColgan, Sun Microsystems Inc., 2004.</
para>