ForceAnnealing_with_BondGraph_continued_betteresults
Rev | Line | |
---|
[0b990d] | 1 | /*!
|
---|
| 2 | \file tocscan.c
|
---|
| 3 | \ingroup (PSIO)
|
---|
| 4 | */
|
---|
| 5 |
|
---|
| 6 | #include <string.h>
|
---|
| 7 | #include <util/psi3/libpsio/psio.h>
|
---|
| 8 |
|
---|
| 9 | namespace psi3 {
|
---|
| 10 | namespace libpsio {
|
---|
| 11 |
|
---|
| 12 | /*!
|
---|
| 13 | ** PSIO_TOCSCAN(): Scans the TOC for a particular keyword and returns either
|
---|
| 14 | ** a pointer to the entry or NULL to the caller.
|
---|
| 15 | **
|
---|
| 16 | ** \ingroup (PSIO)
|
---|
| 17 | */
|
---|
| 18 |
|
---|
| 19 | psio_tocentry *psio_tocscan(unsigned int unit, char *key)
|
---|
| 20 | {
|
---|
| 21 | psio_tocentry *this_entry;
|
---|
| 22 |
|
---|
| 23 | if(key == NULL) return(NULL);
|
---|
| 24 |
|
---|
| 25 | this_entry = psio_unit[unit].toc;
|
---|
| 26 |
|
---|
| 27 | while(this_entry != NULL) {
|
---|
| 28 | if(!strcmp(this_entry->key,key)) return(this_entry);
|
---|
| 29 | this_entry = this_entry->next;
|
---|
| 30 | }
|
---|
| 31 |
|
---|
| 32 | return(NULL);
|
---|
| 33 | }
|
---|
| 34 |
|
---|
| 35 | }
|
---|
| 36 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.