Retrieves the value of the given field in the given group in the
attribute section.
malloc's a memory block, and copies the value into it.
Sets `val->attvalue
' to point to the memory block.
The application program is
responsible for free'ing the memory block.
Function returns: