[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

2.9.0.1 bfd_check_format

Synopsis
 
bfd_boolean bfd_check_format (bfd *abfd, bfd_format format);
Description
Verify if the file attached to the BFD abfd is compatible with the format format (i.e., one of bfd_object, bfd_archive or bfd_core).

If the BFD has been set to a specific target before the call, only the named target and format combination is checked. If the target has not been set, or has been set to default, then all the known target backends is interrogated to determine a match. If the default target matches, it is used. If not, exactly one target must recognize the file, or an error results.

The function returns TRUE on success, otherwise FALSE with one of the following error codes:



This document was generated by system on December, 2 2004 using texi2html