Sets the int pointed to by
value corresponding to the value of the given field.
Caller is responsible for making sure the field exists, has the correct type and that the enumtype is correct.
the name of a field
the enum type of a field
a pointer to an int to set