Returns: 0 if address does not have a bookmark set N+1 if there is an existing bookmark that has this address
| 536 | // 0 if address does not have a bookmark set |
| 537 | // N+1 if there is an existing bookmark that has this address |
| 538 | int Bookmark_Find( const WORD nAddress ) |
| 539 | { |
| 540 | // Ugh, linear search |
| 541 | // int nSize = g_aBookmarks.size(); |
| 542 | int iBookmark; |
| 543 | for (iBookmark = 0; iBookmark < MAX_BOOKMARKS; iBookmark++ ) |
| 544 | { |
| 545 | if (g_aBookmarks[ iBookmark ].nAddress == nAddress) |
| 546 | { |
| 547 | if (g_aBookmarks[ iBookmark ].bSet) |
| 548 | return iBookmark + 1; |
| 549 | } |
| 550 | } |
| 551 | return 0; |
| 552 | } |
| 553 | |
| 554 | |
| 555 | //=========================================================================== |
no outgoing calls
no test coverage detected