IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Dec 3, 2004, 4:43:39 PM (22 years ago)
Author:
evanalst
Message:

Update psHashRemove.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/collections/psHash.c

    r2621 r2625  
    1111*  @author George Gusciora, MHPCC
    1212*
    13 *  @version $Revision: 1.9 $ $Name: not supported by cvs2svn $
    14 *  @date $Date: 2004-12-04 00:04:33 $
     13*  @version $Revision: 1.10 $ $Name: not supported by cvs2svn $
     14*  @date $Date: 2004-12-04 02:43:39 $
    1515*
    1616*  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    159159
    160160/******************************************************************************
    161 psHashFree(table, itemFree): This procedure deallocates the specified hash
     161hashFree(table): This procedure deallocates the specified hash
    162162table.  It loops through each bucket, and calls hashBucketFree() on that
    163163bucket.
     
    380380    if (table == NULL) {
    381381        psError(PS_ERR_BAD_PARAMETER_NULL, true,
     382                PS_ERRORTEXT_psHash_TABLE_NULL);
     383        return NULL;
     384    }
     385    if (key == NULL) {
     386        psError(PS_ERR_BAD_PARAMETER_NULL, true,
    382387                PS_ERRORTEXT_psHash_KEY_NULL);
    383388        return NULL;
    384389    }
    385     if (key == NULL) {
    386         psError(PS_ERR_BAD_PARAMETER_NULL, true,
    387                 PS_ERRORTEXT_psHash_TABLE_NULL);
    388         return NULL;
    389     }
    390390
    391391    return doHashWork(table, key, NULL, 0);
     
    393393
    394394/******************************************************************************
    395 psHashRemove(table, key, itemFree): this procedure, which is part of the
     395psHashRemove(table, key): this procedure, which is part of the
    396396public API, removes the specified key from the hash table.
    397397Inputs:
    398398    table: a hash table
    399399    key: the key to remove
    400     itemFree: a function pointer
    401400Return:
    402401    boolean value defining success or failure
     
    425424        retVal = false;
    426425    }
     426
    427427    return retVal;
    428428}
Note: See TracChangeset for help on using the changeset viewer.