These are the several projects required to be completed before accessing further branches. Full assignment details can be found in the pdfs.
Small recrations of some usefull C library funtions.
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]
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.