This project is a collection of various utility functions and modules written in C as part of 42's core curriculum. It includes functions for checking character types, manipulating lists, memory management, string manipulation, get_next_line and printf.
The project is structured into several directories, each containing related functions:
- ft_is: Contains functions for checking character types, such as
ft_isalnum
,ft_isalpha
,ft_isascii
,ft_isdigit
, andft_isprint
. - ft_lst: Contains functions for manipulating linked lists, such as
ft_lstadd_back
,ft_lstadd_front
,ft_lstclear
,ft_lstdelone
,ft_lstiter
,ft_lstlast
,ft_lstmap
,ft_lstnew
, andft_lstsize
. - ft_mem: Contains functions for memory management, such as
ft_bzero
,ft_calloc
,ft_memchr
,ft_memcmp
,ft_memcpy
,ft_memmove
, andft_memset
. - ft_printf: Contains functions for formatted printing.
- ft_put: Contains functions for outputting characters and strings, such as
ft_putchar
,ft_putstr_fd
, andft_putnbr_base
. - ft_str: Contains functions for string manipulation, such as
ft_substr
. - ft_to: Contains functions for type conversions.
- gnl: Contains the
get_next_line
function for reading lines from a file. - burma_mhu_pyu: Contains functions translated into Burmese (Myanmar) language for Absolute Burmese Vibes.
To use the functions in this project, include the appropriate header files in your C source files. For example, to use the ft_isalpha function, you would include the byamc.h header file:
#include <byamc/byamc.h>
#include <byamc/ft_printf.h>
Then, you can call the function like this:
if (ft_isalpha('a'))
{
ft_printf("The character is an alphabetic character.\n");
}
To use burmese functions, include the <byamc/burmese.h>
header file:
#include <byamc/burmese.h>
Then, you can call the function like this:
int main(void)
{
int num ကိုထားလိုက် 1 ။
char *msg = နေရာဦး(100)။
အကယ်၍ (num တူညီရင် 1)
{
အာချောင်စမ်း ("မင်္ဂလာပါ။ တောသားတွေ။\n")။
}
ဒါမှမဟုတ်
{
အာချောင်စမ်း ("မင်္ဂလာပါ။\n")။
}
ရှင်းပစ် (msg)။
}
This project uses a Makefile for building. To build the project, run the following command in your terminal:
make
This project is licensed under the GNU General Public License v3.0. For more details, see the LICENSE file.
For any questions or concerns, please contact the author at [email protected].