.\" Part of publib. .\" .\" Copyright (c) 1994-2006 Lars Wirzenius. All rights reserved. .\" .\" Redistribution and use in source and binary forms, with or without .\" modification, are permitted provided that the following conditions .\" are met: .\" .\" 1. Redistributions of source code must retain the above copyright .\" notice, this list of conditions and the following disclaimer. .\" .\" 2. Redistributions in binary form must reproduce the above .\" copyright notice, this list of conditions and the following .\" disclaimer in the documentation and/or other materials provided .\" with the distribution. .\" .\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS .\" OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED .\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE .\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY .\" DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE .\" GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS .\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, .\" WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING .\" NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS .\" SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. .\" .\" part of publib .\" "@(#)publib-iset:$Id: iset.3,v 1.2 1994/02/03 17:27:58 liw Exp $" .\" .TH ISET 3pub "C Programmer's Manual" Publib "C Programmer's Manual" .SH NAME iset_create, iset_destroy, iset_copy, iset_is_empty, iset_add, iset_add_range, iset_remove, iset_remove_range, iset_clear, iset_contains, iset_union, iset_diff, iset_isect, iset_range, iset_nth_range \- manipulate sets of integers .SH SYNOPSIS .nf #include .sp 1 Iset *\fBiset_create\fR(void); void \fBiset_destroy\fR(Iset *\fIis\fR); Iset *\fBiset_copy\fR(const Iset *\fIis\fR); .sp 1 int \fBiset_is_empty\fR(const Iset *\fIis\fR); int \fBiset_add\fR(Iset *\fIis\fR, long \fInumber\fR); int \fBiset_add_range\fR(Iset *\fIis\fR, long \fInumber1\fR, long \fInumber2\fR); int \fBiset_remove\fR(Iset *\fIis\fR, long \fInumber\fR); int \fBiset_remove_range\fR(Iset *\fIis\fR, long \fInumber1\fR, long \fInumber2\fR); void \fBiset_clear\fR(Iset *\fIis\fR); int \fBiset_contains\fR(const Iset *\fIis\fR, long \fInumber\fR); int \fBiset_union\fR(Iset *\fIis1\fR, const Iset *\fIis2\fR); int \fBiset_diff\fR(Iset *\fIis1\fR, const Iset *\fIis2\fR); int \fBiset_isect\fR(Iset *\fIis1\fR, const Iset *\fIis2\fR); void \fBiset_range\fR(const Iset *\fIis\fR, long *\fIlowest\fR, long *\fIhighest\fR); int \fBiset_nth_range\fR(const Iset *\fIis\fR, long \fIn\fR, long *\fIlo\fR, long *\fIhi\fR); .SH "DESCRIPTION" These functions operate on sets of integers (of type long). You clever people will know how to use them without my help, which saves me from writing a manual page. .SH "SEE ALSO" publib(3), bitarr(3) .SH AUTHOR Lars Wirzenius (lars.wirzenius@helsinki.fi)