1 | #include <config.h> |
---|---|
2 | #include "lst.h" |
3 | |
4 | int lstSeek( HLST hLst, void *pData ) |
5 | { |
6 | if ( !hLst ) |
7 | return false; |
8 | |
9 | lstFirst( hLst ); |
10 | while ( !lstEOL( hLst ) ) |
11 | { |
12 | if ( lstGet( hLst ) == pData ) |
13 | return true; |
14 | |
15 | lstNext( hLst ); |
16 | } |
17 | |
18 | return false; |
19 | } |
20 | |
21 | |
22 | |
23 |