Changeset 38 for trunk/src/helpers/linklist.c
- Timestamp:
- Feb 17, 2001, 3:03:14 PM (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/helpers/linklist.c
r35 r38 373 373 PLISTNODE lstQueryFirstNode(PLINKLIST pList) 374 374 { 375 if (pList) 376 if (pList->ulMagic == LINKLISTMAGIC) 377 return (pList->pFirst); 375 if ( (pList) 376 && (pList->ulMagic == LINKLISTMAGIC) 377 ) 378 return (pList->pFirst); 379 380 return (0); 381 } 382 383 /* 384 *@@ lstQueryLastNode: 385 * similar to lstQueryFirstNode, but this returns 386 * the last node. 387 * 388 *@@added V0.9.9 (2001-02-14) [umoeller] 389 */ 390 391 PLISTNODE lstQueryLastNode(PLINKLIST pList) 392 { 393 if ( (pList) 394 && (pList->ulMagic == LINKLISTMAGIC) 395 ) 396 return (pList->pLast); 378 397 379 398 return (0);
Note:
See TracChangeset
for help on using the changeset viewer.