Coder Social home page Coder Social logo

42-berlin-libft's Introduction

Libft Library

The libft is a re-implementation of set of libc functions and several other utility functions that will be useful for other projects.

Languages

My Skills

Libc functions

Function Description
ft_isalpha Checks for an alphabetic characters
ft_isdigit Checks for a digit (0 through 9)
ft_isalnum Checks for an alphanumeric character
ft_isascii Checks whether c is a 7-bit unsigned char value that fits into the ASCII character set
ft_isprint Checks for any printable character including space
ft_strlen Calculates the length of the string pointed to by s, excluding the terminating null byte ('\0')
ft_memset Fills the first n bytes of the memory area pointed to by s with the constant byte c.
ft_bzero Erases the data in the n bytes of the memory starting at the location pointed to by s, by writing zeros (bytes containing '\0') to that area.
ft_memcpy Copies n bytes from memory area src to memory area dest. The memory areas must not overlap. Use memmove(3) if the memory areas do overlap.
ft_memmove Copies n bytes from memory area src to memory area dest. The memory areas may overlap: copying takes place as though the bytes in src are first copied into a temporary array that does not overlap src or dest, and the bytes are then copied from the temporary array to dest.
ft_strlcpy Copies up to size - 1 characters from the NUL-terminated string src to dst, NUL-terminating the result.
ft_strlcat Appends the NUL-terminated string src to the end of dst. It will append at most size - strlen(dst) - 1 bytes, NUL-terminating the result.
ft_toupper Convert lowercase letters to uppercase
ft_tolower Convert uppercase letters to lowercase
ft_strchr Returns a pointer to the first occurrence of the character c in the string s.
ft_strrchr Returns a pointer to the last occurrence of the character c in the string s.
ft_strncmp Compares only the first (at most) n bytes of s1 and s2.
ft_memchr Scans the initial n bytes of the memory area pointed to by s for the first instance of c.
ft_memcmp Returns an integer less than, equal to, or greater than zero if the first n bytes of s1 is found, respectively, to be less than, to match, or be greater than the first n bytes of s2.
ft_strnstr Locates the first occurrence of the null-terminated string little in the string big, where not more than len characters are searched. Characters that appear after a ‘\0’ character are not searched.
ft_atoi Converts the initial portion of the string pointed to by nptr to int.

Result: 1️⃣2️⃣5️⃣ / 1️⃣0️⃣0️⃣ ✔️

Tested Using: https://github.com/xicodomingues/francinette

42-berlin-libft's People

Contributors

dvnishshanka avatar

Stargazers

 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.