This function takes the following parameters:
Entry from which you want to get the attribute.
Previous attribute in the entry.
Pointer to the next attribute after prevattr in the entry.