GithubHelp home page GithubHelp logo

libs21's Introduction

libs21

libs21 is a static library that contains functions for various tasks from school 21.

Contents

This library contains the following functions:

  • split: Split string using some delimiter
  • to_lower: Converts string to lowercase
  • to_upper: Converts string to uppercase
  • load_bmp: Read bmp file into unsigned char array
  • bmp_data_to_grayscale: Converts bmp data into grayscale

Requirements

To use this library, you'll need the following:

A clang++ that supports C++17 or later

Building

To build the library, simply run make in the project directory. This will compile the library into a static archive file named libs21.a.

Using

To use the library in your own project, you can include the header files for the functions you need and link against the libs21.a file. For example, if you wanted to use the foo function from the library in your own program:

#include <stdio.h>
#include "libs21.h"

int main() {
    printf("%s\n", s21::to_upper("hello world!"));
    return 0;
}

Then you can compile your program with:

gcc -o myprogram myprogram.c -I/path/to/libs21/include -L/path/to/libs21

Make sure to replace /path/to/libs21 with the actual path to your libs21 project directory.

Contributing

If you would like to contribute to libs21, feel free to submit a pull request with your changes. Make sure to write tests for any new functionality you add and update the documentation as necessary.

License

libs21 is released under the MIT License. See LICENSE for details.

libs21's People

Contributors

ludwigandreas avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.