X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=src%2FSDCChasht.c;fp=src%2FSDCChasht.c;h=d7551c04ac30a53b002e03ed940bb5e1fc60885a;hb=35b2268330964fce85f91c0f4caade091d0915f6;hp=cc467afd7f928a19b799849e75d82e67c1feb816;hpb=9d52efe67615c0f03066e626a049303d75127322;p=fw%2Fsdcc diff --git a/src/SDCChasht.c b/src/SDCChasht.c index cc467afd..d7551c04 100644 --- a/src/SDCChasht.c +++ b/src/SDCChasht.c @@ -513,6 +513,14 @@ hTabItemWithKey (hTab * htab, int key) return htip->item; } +/*-----------------------------------------------------------------*/ +/* hTabMaxKey - return the maxKey of item in the hashTable */ +/*-----------------------------------------------------------------*/ +int hTabMaxKey (hTab *htab) +{ + return (htab ? htab->maxKey : 0); +} + /*-----------------------------------------------------------------*/ /*hTabAddItemIfNotP - adds an item with nothing found with key */ /*-----------------------------------------------------------------*/