Files
numa/README.md
cinqatte 09b6fe75ba
2024-10-03 14:49:23 +02:00

987 B

Numa Library

Description

Numa Library is a lightweight C library that provides functionality to generate hexadecimal dumps of binary data. It's designed to be easy to use, efficient, and flexible.

Key Features

  • Customizable output format
  • Support for different grouping sizes (1, 2, 4, or 8 bytes)
  • ASCII representation alongside hex output
  • Configurable number of bytes per row

Installation

Prerequisities

  • CMake (version 3.10 or higher)
  • A C compiler (supporting C99 standard)

Building the Library

  1. For the default static library build
cmake -B build
cmake --build build
  1. To build a shared library:
cmake -B build -DBUILD_SHARED_LIBS=ON
cmake --build build

Installing the Library

To install the library to the default location (/usr/local):

sudo cmake --install build

To specify a custom installation directory:

cmake -B build -DINSTALL_DIR=/usr
cmake --build build
cmake --install build