gelf_getclass3
Retrieve the class of an elf descriptor
Usage
#include <gelf.h>
int
gelf_getclass(Elf *elf);
Library
library “libelf”
Overview
Function gelf_getclass() returns the ELF class of the descriptor supplied in argument elf.
Return values
Function gelf_getclass() will return one of ELFCLASS32 or ELFCLASS64 if the argument elf is a descriptor for an ELF file. The value ELFCLASSNONE is returned if argument elf was null, or if it was not a descriptor for an ELF file.
Releases
44 releases since FreeBSD 7.0-RELEASE; the text changed 20 times.