1MEMORY(3TIFF)                                                    MEMORY(3TIFF)
2
3
4

NAME

6       _TIFFmalloc,   _TIFFrealloc,   _TIFFfree,   _TIFFmemset,   _TIFFmemcpy,
7       _TIFFmemcmp, - memory management-related functions for  use  with  TIFF
8       files
9

SYNOPSIS

11       #include <tiffio.h>
12
13       tdata_t _TIFFmalloc(tsize_t size);
14       tdata_t _TIFFrealloc(tdata_t buffer, tsize_t size);
15       void _TIFFfree(tdata_t buffer);
16       void _TIFFmemset(tdata_t s, int c, tsize_t n);
17       void _TIFFmemcpy(tdata_t dest, const tdata_t src, tsize_t n);
18       int _TIFFmemcmp(const tdata_t s1, const tdata_t s2, tsize_t n);
19

DESCRIPTION

21       These  routines  are  provided  for writing portable software that uses
22       libtiff; they hide any memory-management related issues, such as  deal‐
23       ing with segmented architectures found on 16-bit machines.
24
25       _TIFFmalloc and _TIFFrealloc are used to dynamically allocate and real‐
26       locate memory used by libtiff; such as memory passed into the I/O  rou‐
27       tines.  Memory  allocated  through these interfaces is released back to
28       the system using the _TIFFfree routine.
29
30       Memory allocated through one of the above interfaces can be  set  to  a
31       known  value using _TIFFmemset, copied to another memory location using
32       _TIFFmemcpy, or compared for equality using  _TIFFmemcmp.   These  rou‐
33       tines  conform  to  the equivalent ANSI C routines: memset, memcpy, and
34       memcmp, respectively.
35

DIAGNOSTICS

37       None.
38

SEE ALSO

40       malloc(3), memory(3), libtiff(3TIFF)
41
42       Libtiff library home page: http://www.simplesystems.org/libtiff/
43
44
45
46libtiff                        October 15, 1995                  MEMORY(3TIFF)
Impressum