Skip to main content

Helpers for c-structs sizes and offsets

Project description

C-Helpers

Overview

Just like the old saying "girls just wanna have fun", so do software researchers.

Many of us sometimes need to just get the values of some basic C native types. We can look for them in the headers or just compile a simple C program to print them - which can be quite exhausting each time.

That's where c-helpers comes into place - Simply use the c-const and c-struct directly from your terminal!

For example:

$ c-struct 'struct dirent'
sizeof(struct dirent): 1048 (0x418)

$ c-struct 'struct dirent' d_ino
sizeof(struct dirent): 1048 (0x418)
offsetof(struct dirent, d_ino): 0 (0x00)
sizeof(struct dirent::d_ino): 8 (0x08)

$ c-const EAGAIN
35 (0x23)

Installation

python3 -m pip install c-helpers

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

c-helpers-1.0.0.tar.gz (6.5 kB view hashes)

Uploaded Source

Built Distribution

c_helpers-1.0.0-py3-none-any.whl (4.8 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page