function: map_cs_newlibrary: avlmap

Name

map_cs_new

Synopsis

MAP map_cs_new( (int (*)(char *,size_t,char *,size_t)) compare_function | NULL )

Description

map_cs_new creates a new instance of a mapping which has a key type of string of char, and returns the handle for that mapping.

Arguments

  1. compare_function is an optional function pointer to allow specialized collation of the key. Providing the NULL value uses the standard comparison and collation.

Return values

Errors

The errno value is set by system functions when an error occurs.

See also

avlmap index page


The documentation, source code, and derived compilations are
Copyright © 2000 by Philip Howard.
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.

This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA