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

2.6.5.8 bfd_map_over_sections

Synopsis
 
void bfd_map_over_sections
   (bfd *abfd,
    void (*func) (bfd *abfd, asection *sect, void *obj),
    void *obj);
Description
Call the provided function func for each section attached to the BFD abfd, passing obj as an argument. The function will be called as if by

 
       func (abfd, the_section, obj);

This is the preferred method for iterating over sections; an alternative would be to use a loop:

 
          section *p;
          for (p = abfd->sections; p != NULL; p = p->next)
             func (abfd, p, ...)



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