Find an attribute with the specified type in the array.
If the attribute is marked invalid then it will be treated as not found. The resulting string will be null-terminated, and must be freed by the caller using g_free.
The attributes array to search.
The type of attribute to find.
The resulting string value.
Whether a value was found or not.