Add to git.
[c2lib.git] / doc / pmemdup.3.html
1 <html>
2 <head>
3 <meta name="generator" content="groff -Thtml, see www.gnu.org">
4 <meta name="Content-Style" content="text/css">
5 <title>pstrdup</title>
6 </head>
7 <body>
8
9 <h1 align=center>pstrdup</h1>
10 <a href="#NAME">NAME</a><br>
11 <a href="#SYNOPSIS">SYNOPSIS</a><br>
12 <a href="#DESCRIPTION">DESCRIPTION</a><br>
13 <a href="#AUTHOR">AUTHOR</a><br>
14 <a href="#LICENSE">LICENSE</a><br>
15 <a href="#VERSION">VERSION</a><br>
16
17 <hr>
18 <!-- Creator     : groff version 1.17.2 -->
19 <!-- CreationDate: Fri May  3 14:57:32 2002 -->
20 <a name="NAME"></a>
21 <h2>NAME</h2>
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="10%"></td><td width="90%">
26 pstrdup, pstrndup, pmemdup - duplicate a string or area of memory</td></table>
27 <a name="SYNOPSIS"></a>
28 <h2>SYNOPSIS</h2>
29
30 <table width="100%" border=0 rules="none" frame="void"
31        cols="2" cellspacing="0" cellpadding="0">
32 <tr valign="top" align="left">
33 <td width="10%"></td><td width="90%">
34 <pre><b>#include &lt;pstring.h&gt;
35
36 char *pstrdup (pool, const char *s);
37 char *pstrndup (pool, const char *s, int n);
38 void *pmemdup (pool, const void *data, size_t size);
39 </b></pre></td></table>
40 <a name="DESCRIPTION"></a>
41 <h2>DESCRIPTION</h2>
42
43 <table width="100%" border=0 rules="none" frame="void"
44        cols="2" cellspacing="0" cellpadding="0">
45 <tr valign="top" align="left">
46 <td width="10%"></td><td width="90%">
47 <b>pstrdup</b> duplicates string <b>s</b>, allocating new
48 memory for the string in pool <b>pool</b>.</td></table>
49
50 <table width="100%" border=0 rules="none" frame="void"
51        cols="2" cellspacing="0" cellpadding="0">
52 <tr valign="top" align="left">
53 <td width="10%"></td><td width="90%">
54 <b>pstrndup</b> duplicates just the first <b>n</b>
55 characters of the string.</td></table>
56
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="10%"></td><td width="90%">
61 <b>pmemdup</b> duplicates an arbitrary area of memory of
62 size <b>size</b> bytes starting at address
63 <b>data</b>.</td></table>
64 <a name="AUTHOR"></a>
65 <h2>AUTHOR</h2>
66
67 <table width="100%" border=0 rules="none" frame="void"
68        cols="2" cellspacing="0" cellpadding="0">
69 <tr valign="top" align="left">
70 <td width="10%"></td><td width="90%">
71 Richard Jones &lt;rich@annexia.org&gt;</td></table>
72 <a name="LICENSE"></a>
73 <h2>LICENSE</h2>
74
75 <table width="100%" border=0 rules="none" frame="void"
76        cols="2" cellspacing="0" cellpadding="0">
77 <tr valign="top" align="left">
78 <td width="10%"></td><td width="90%">
79 GNU LGPL (see http://www.gnu.org/)</td></table>
80 <a name="VERSION"></a>
81 <h2>VERSION</h2>
82
83 <table width="100%" border=0 rules="none" frame="void"
84        cols="2" cellspacing="0" cellpadding="0">
85 <tr valign="top" align="left">
86 <td width="10%"></td><td width="90%">
87 c2lib-1.2.13</td></table>
88 <hr>
89 </body>
90 </html>