OpenBSD Handbook Manuals
Search

gelf_getclass(3)

Canonical URL: /gelf_getclass.3/

GELF_GETCLASS(3) Library Functions Manual GELF_GETCLASS(3)

gelf_getclassretrieve the class of an ELF descriptor

/* -lelf */
#include <gelf.h>

int
gelf_getclass(Elf *elf);

Function () returns the ELF class of the descriptor supplied in argument elf.

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.

elf(3), elf_kind(3), gelf(3)

OpenBSD 7.8 July 3, 2006 GELF_GETCLASS(3)

Need conceptual guidance? Continue in the OpenBSD Handbook.