Coder Social home page Coder Social logo

42_my_lib's Introduction

42_my_lib

Description

42_my_lib is a library of useful functions that you can use in your C programs. The library is related to the 42 cursus projects, a series of coding projects offered by the French coding school, École 42.

How to Use

To use the 42_my_lib , you first need to create the library file by compiling the source files. Here are the steps:

  1. Download or clone this project.
  2. Run the make command.
git clone https://github.com/AYMANE330/42_my_lib
cd 42_my_lib
make
  1. You should see a libs.a file and some object files (.o).
  2. Now you can use the library in your C programs by including the header files and linking the library. For example:
#include "includes.h"
#include <stdio.h>

int main()
{
    char str[] = "Hello, world!";
    printf("Length of string: %d\n",(int)ft_strlen(str));
    return 0;
}
  1. To clean up run the command make clean.
  2. now u can compile :
cc <file.c> libs.a -o <name of ur program>

Contribution

If you would like to contribute to the 42_my_lib , feel free to create a pull request. Before submitting your changes, please make sure that your code follows the 42 norm.

License

This project is licensed under the MIT License - see the LICENSE.txt file for details.

42_my_lib's People

Contributors

aymane330 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.