Git Product home page Git Product logo

libmy's Introduction

libmy

{EPITECH.} first year project.

Recoding libc functions into a C static library.

Requirements

Get started

Compile the library

Navigate to the root of the repository from your Terminal and run make to build the libmy.a static library.

Use libmy

  • Copy this repository inside a folder in your project directory.
  • Include the my.h header file in your .c files where you want to use libmy:
#include "my.h"
  • If you put this repository in a folder named lib/, run this command to compile a main.c file using the library:
gcc main.c -L lib/ -l my -I lib/include/

Functions

Here is a list of all libmy function prototypes:

char	*get_next_line(int const fd);
int	match(char *str1, char *str2);
float	my_atof(const char *str);
int	my_atoi(const char *str);
int	my_char_isalpha(const char letter);
int	my_char_islower(const char letter);
int	my_char_isnum(const char letter);
int	my_char_isprintable(const char letter);
int	my_char_isupper(const char letter);
int	my_cmp(const char *str1, const char *str2);
int	my_dprintf(int fd, const char *format, ...);
char	**my_envcpy(char **environ);
char	*my_epur_str(char *str);
void	my_exit(int exit_code, const char *format, ...);
int	my_find_prime_sup(int nbr);
void	my_free_2d_tab(char **tab);
char	*my_getenv(char **env, const char *to_find);
int	my_is_prime(const int nbr);
char	*my_itoa(int nbr);
int	my_max_int_tab(const int *tab, const t_uint size);
int	my_min_int_tab(const int *tab, const t_uint size);
int	my_power(const int nbr, int power);
void	my_printenv(char **env, char separator);
int	my_printf(const char *format, ...);
char	*my_realloc(char *str, int to_add);
char	*my_revstr(char *str);
void	my_setenv(char ***env, char *to_change, char *new_value);
void	my_sort_int_tab(int *tab, int size);
int	my_square_root(const int nbr);
char	*my_strcapitalize(char *str);
int	my_strcmp(const char *str1, const char *str2);
char	*my_strdup(const char *src);
int	my_str_isalpha(const char *str);
int	my_str_islower(const char *str);
int	my_str_isnum(const char *str);
int	my_str_isprintable(const char *str);
int	my_str_isupper(const char *str);
int	my_strlen(const char *str);
char	*my_strlowcase(char *str);
char	*my_strncat(char *dest, const char *src, int nbr);
int	my_strncmp(const char *str1, const char *str2, t_uint nbr);
char	*my_strncpy(char *dest, const char *src, t_uint nbr);
char	*my_strstr(char *str, const char *to_find);
char	**my_str_to_wordtab(char *clean_str);
char	*my_strupcase(char *str);
void	my_swap(int *ptr_a, int *ptr_b);
char	*my_uitoa(t_uint nbr);
void	my_unsetenv(char ***env, char *to_unset);
int	nmatch(char *str1, char *str2);

libmy's People

Contributors

ronanboiteau avatar

Stargazers

 avatar

Watchers

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