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-0.0.1.tar.gz (6.2 kB view details)

Uploaded Source

Built Distribution

c_helpers-0.0.1-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

Details for the file c-helpers-0.0.1.tar.gz.

File metadata

  • Download URL: c-helpers-0.0.1.tar.gz
  • Upload date:
  • Size: 6.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.2

File hashes

Hashes for c-helpers-0.0.1.tar.gz
Algorithm Hash digest
SHA256 be0af2db4a61fb48b59654ca36473346a4661763e72830cdee539769146d67a7
MD5 ff635bc1a337ca1554e548a580146170
BLAKE2b-256 9b5d8320a213064631fda4f6aa05e34559879b8b34c8fcae7ab4433d52c0c34b

See more details on using hashes here.

File details

Details for the file c_helpers-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: c_helpers-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 4.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.2

File hashes

Hashes for c_helpers-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c7f7502be2c7b2cc8c09cf518c76805366669c4a8a3d5e462da708d2177c8138
MD5 6a8f5eb8ca7c2920e0c634020934c2fe
BLAKE2b-256 d21b9f0f318f0bf3302434c79fab00c56853d3ed542d4c5a92c5c61414d8f1d5

See more details on using hashes here.

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