lattrp(<object>[/<wild-pattern>])
Returns a list of the attributes set on <object> and it's parents. If <wild-pattern> is given, only attributes matching it are returned.
attrcnt(), @dolist, lattr()