src/function.c
bool reservedC(char* str)
{
    int key = hashfunction(str);                            // finding the key of string

    /**
     * COLLISION SOLUTION
     * Adding initial shift value to key
     * 
     * 349 -- continue  
     * 181 -- goto
     **/
    if(strcmp(str,"continue")==0 || strcmp(str,"goto")==0)
    {
        key++;
    }

    if(key<0 || key>HASHSIZE)                               // if key is not valid
    {
        return false;
    }
    else if(HASH[key]!=NULL && strcmp(str,HASH[key])==0)    // if key founded
    {
        return true;
    }
    else
    {
        return false;
    }
}
/**
 * it will search a string in the collection of reserved words in C language
 * 
 * @param search string
 * 
 * @return bool
 **/
it will search a string in the collection of reserved words in C language

@param search string

@return bool
it will search a string in the collection of reserved words in C language @param search string @return bool
bool reservedC(char* str)
{
    int key = hashfunction(str);                            
    if(strcmp(str,"continue")==0 || strcmp(str,"goto")==0)
    {
        key++;
    }
    if(key<0 || key>HASHSIZE)                               
    {
        return false;
    }
    else if(HASH[key]!=NULL && strcmp(str,HASH[key])==0)    
    {
        return true;
    }
    else
    {
        return false;
    }
}
bool reservedC ( char * str ) { int key = hashfunction ( str ) ; if ( strcmp ( str , " " ) == 0 || strcmp ( str , " " ) == 0 ) { key ++ ; } if ( key < 0 || key > HASHSIZE ) { return false ; } else if ( HASH [ key ] != NULL && strcmp ( str , HASH [ key ] ) == 0 ) { return true ; } else { return false ; } }
it will search a string in the collection of reserved words in C language
it will search a string in the collection of reserved words in C language
// finding the key of string /**
     * COLLISION SOLUTION
     * Adding initial shift value to key
     * 
     * 349 -- continue  
     * 181 -- goto
     **/ // if key is not valid // if key founded