from small one page howto to huge articles all in one place

search text in:




Other .linuxhowtos.org sites:gentoo.linuxhowtos.org



Last additions:
using iotop to find disk usage hogs

using iotop to find disk usage hogs

words:

887

views:

209581

userrating:


May 25th. 2007:
Words

486

Views

258588

why adblockers are bad


Workaround and fixes for the current Core Dump Handling vulnerability affected kernels

Workaround and fixes for the current Core Dump Handling vulnerability affected kernels

words:

161

views:

149878

userrating:


April, 26th. 2006:

Druckversion
You are here: manpages





ELF_STRPTR

Section: Libelf Programmer's Manual (3)
Updated: 202-0-30
Index Return to Main Contents

 

NAME

elf_strptr - Return a pointer to a string in a string table section

 

SYNOPSIS

#include <libelf.h>

char *elf_strptr(Elf *elf, size_t section_index, size_t offset);

 

DESCRIPTION

The elf_strptr() function returns a pointer to a nul-terminated string located at offset bytes from the beginning of the string table section identified by section_index. The section must be of type SHT_STRTAB.

This function validates the provided offset against the size of the string table and ensures the string is nul-terminated. It transparently handles both uncompressed and compressed sections.

If the ELF descriptor is not backed by memory mapping, or the section has not been loaded yet, the function will read and initialize the necessary data from the file.

 

PARAMETERS

elf
Pointer to an ELF descriptor.

section_index
The index of the string table section (of type SHT_STRTAB).

offset
The byte offset from the beginning of the string table section where the desired string is located.

 

RETURN VALUE

Returns a pointer to the string within the string table if successful. Returns NULL on error.

 

SEE ALSO

elf(3), elf_getscn(3), libelf(3), elf(5)

 

ATTRIBUTES

InterfaceAttributeValue
elf_strptr() Thread safetyM-Safe

 

REPORTING BUGS

Report bugs to <elfutil-devel@sourceware.org> or https://sourceware.org/bugzilla/.


 

Index

NAME
SYNOPSIS
DESCRIPTION
PARAMETERS
RETURN VALUE
SEE ALSO
ATTRIBUTES
REPORTING BUGS





Support us on Content Nation
rdf newsfeed | rss newsfeed | Atom newsfeed
- Powered by LeopardCMS - Running on Gentoo -
Copyright 2004-2025 Sascha Nitsch Unternehmensberatung GmbH
Valid XHTML1.1 : Valid CSS
- Level Triple-A Conformance to Web Content Accessibility Guidelines 1.0 -
- Copyright and legal notices -
Time to create this page: 13.9 ms