Changeset 1202
- Timestamp:
- Jul 8, 2004, 12:05:14 PM (22 years ago)
- Location:
- trunk/psLib/src/sysUtils
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/sysUtils/psHash.c
r1073 r1202 10 10 * @author George Gusciora, MHPCC 11 11 * 12 * @version $Revision: 1. 9$ $Name: not supported by cvs2svn $13 * @date $Date: 2004-0 6-23 23:00:15$12 * @version $Revision: 1.10 $ $Name: not supported by cvs2svn $ 13 * @date $Date: 2004-07-08 22:05:14 $ 14 14 * 15 15 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 359 359 NONE 360 360 *****************************************************************************/ 361 void *psHashInsert(psHash *table, const char *key, void *data)361 bool psHashAdd(psHash *table, const char *key, void *data) 362 362 { 363 363 if (table == NULL) { … … 371 371 } 372 372 373 return doHashWork(table, key, data, 0);373 return (doHashWork(table, key, data, 0) != NULL); 374 374 } 375 375 -
trunk/psLib/src/sysUtils/psHash.h
r1073 r1202 10 10 * @author George Gusciora, MHPCC 11 11 * 12 * @version $Revision: 1.1 4$ $Name: not supported by cvs2svn $13 * @date $Date: 2004-0 6-23 23:00:15$12 * @version $Revision: 1.15 $ $Name: not supported by cvs2svn $ 13 * @date $Date: 2004-07-08 22:05:14 $ 14 14 * 15 15 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 21 21 * \{ 22 22 */ 23 #include<stdbool.h> 24 23 25 #include "psList.h" 24 26 … … 46 48 47 49 /// Insert entry into table. 48 void *psHashInsert(psHash *table, ///< table to insert in49 const char *key, ///< key to use50 void *data ///< data to insert51 );50 bool psHashAdd(psHash *table, ///< table to insert in 51 const char *key, ///< key to use 52 void *data ///< data to insert 53 ); 52 54 53 55 /// Lookup key in table.
Note:
See TracChangeset
for help on using the changeset viewer.
