How to get All options of a 'select' field? How can I get all options for a cck field?

For example, There is a field with 3 options in allowed values, like option1, option2, option3.Is there any function which receive the field name and returns option1 to option3?
You can also use list_allowed_values().

$field = field_info_field('field_name');
$allowed_values = list_allowed_values($field);