Add to git.
[c2lib.git] / doc / psort.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>psort</title>
6 </head>
7 <body>
8
9 <h1 align=center>psort</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:47 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 psort - sort a vector of strings</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 void psort (vector, int (*compare_fn) (const char **, const char **));
37 </b></pre></td></table>
38 <a name="DESCRIPTION"></a>
39 <h2>DESCRIPTION</h2>
40
41 <table width="100%" border=0 rules="none" frame="void"
42        cols="2" cellspacing="0" cellpadding="0">
43 <tr valign="top" align="left">
44 <td width="10%"></td><td width="90%">
45 Sort a vector of strings, using <b>compare_fn</b> to compare
46 strings. The vector is sorted in-place.</td></table>
47
48 <table width="100%" border=0 rules="none" frame="void"
49        cols="2" cellspacing="0" cellpadding="0">
50 <tr valign="top" align="left">
51 <td width="10%"></td><td width="90%">
52 It is a common mistake to try to use <b>strcmp</b> directly
53 as your comparison function. This will not work. See the C
54 FAQ, section 12, question 12.2
55 (<b>http://www.lysator.liu.se/c/c-faq/c-12.html</b>).</td></table>
56 <a name="AUTHOR"></a>
57 <h2>AUTHOR</h2>
58
59 <table width="100%" border=0 rules="none" frame="void"
60        cols="2" cellspacing="0" cellpadding="0">
61 <tr valign="top" align="left">
62 <td width="10%"></td><td width="90%">
63 Richard Jones &lt;rich@annexia.org&gt;</td></table>
64 <a name="LICENSE"></a>
65 <h2>LICENSE</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 GNU LGPL (see http://www.gnu.org/)</td></table>
72 <a name="VERSION"></a>
73 <h2>VERSION</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 c2lib-1.2.13</td></table>
80 <hr>
81 </body>
82 </html>