Source
len = HDstrlen(dir) + HDstrlen(H5PL_PATH_SEPARATOR) + HDstrlen(dp->d_name) + 1 /*\0*/ + 4; /* Extra "+4" to quiet GCC warning - 2019/07/05, QAK */
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* Copyright by The HDF Group. *
* All rights reserved. *
* *
* This file is part of HDF5. The full HDF5 copyright notice, including *
* terms governing use, modification, and redistribution, is contained in *
* the COPYING file, which can be found at the root of the source code *
* distribution tree, or in https://support.hdfgroup.org/ftp/HDF5/releases. *
* If you do not have access to either file, you may request a copy from *
* help@hdfgroup.org. *
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/*
* Purpose: Code to implement a path table which stores plugin search paths.
*
* The path table is implemented as a dynamic, global array which
* will grow as new paths are inserted. The capacity of the path
* table never shrinks (though given the low number of paths
* expected and the low likelihood of paths being removed, this
* seems unlikely to be a problem). Inserts and removals rework
* the array so that there are no 'holes' in the in-use part
* of the array.
*
* Note that it's basically up to the user to manage the indexes
* when a complicated series of insert, overwrite, and, remove
* operations take place.
*/
/****************/
/* Module Setup */
/****************/
/***********/
/* Headers */
/***********/
/****************/
/* Local Macros */
/****************/
/* Initial capacity of the path table */