Code Monkey home page Code Monkey logo

my_library's Introduction

My_library

Implementation of standard C library and original functions

Original functions

All original functions are in the 'ori' directory

ft_split

char **ft_split(char const *str, char c)

Splitting a string
str: Target to split
c: split character
return value: Array of strings after splitting

ft_strjoin

char *ft_strjoin(char const *s1, char const *s2)

String concatenation
s1, s2: strings
return value: the concatenated string.

ft_strmap

char *ft_strmapi(char const *s, char (*f)(unsigned int, char))

Add processing one character at a time
s: Target to process
f: Operation contents
return value: the string after processing

ft_strtrim

char *ft_strtrim(char const *s1, char const *set)

Eliminate the preceding and following characters
s1: Target
set: Target to eliminate
return value: the string after processing

ft_substr

char *ft_substr(char const *s, unsigned int start, size_t len)

Cut off a string
s: Target to cut
start: Start position of the string to be cut.
return value: the cut string

ft_isintoverflow

int ft_isintoverflow(const char *str)

Check that the number in the string does not overflow the int type.
str: The number in the string
return value: 1 if the number overflows

ft_put*_fd

Output a string to the specified file descriptor.

ft_lst*_fd

Function for concatenated lists

my_library's People

Contributors

sk-uma 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.