/42-Core-Projects

Projects completed for curriculum at 42 Fremont

Primary LanguageC

42 Core Cirriculum Projects

These are the several projects required to be completed before accessing further branches. Full assignment details can be found in the pdfs.

Libft

Small recrations of some usefull C library funtions.

Fillit

Packing problem solver for tetris pieces. Input is given to the program using valid newline seperated tetrominos (max of 26) output with a valid file will be a solution of the smallest possible square with each piece in its upperleft most position according to its order.

Usage:

make all

./fillit [path to file]

Get Next line

int  get_next_line(const int fd, char **line)

Function used read and return lines from a given file descriptor. Succesive calls to the function returns the next line untill the EOF. Bytes read is defined by BUFF_SIZE macro in the header. Multiple file descriptors are handled though a linked list and one static variable used for bonuses.