Skip to content

Instantly share code, notes, and snippets.

View dlupaescu's full-sized avatar

Dani Lupaescu dlupaescu

View GitHub Profile
/*
Exercitiu : brainfuck
Fisiere de iesire : *.c, *.h
Functii autorizate : write, malloc, free
--------------------------------------------------------------------------------
Scrieti un interpretor de programe numit Brainfuck.
Codul sursa va fi dat ca primul argument.
Codul va fi mereu valid, cu cel mult 4096 operatii.
Barinfuck este un limbaj minimal. Contine un vector de bytes
@dlupaescu
dlupaescu / fprime.c
Last active August 29, 2015 14:28
Level: 4 | fprime.c
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* fprime.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: exam <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2015/08/21 19:54:22 by exam #+# #+# */
/* Updated: 2015/08/21 20:17:20 by exam ### ########.fr */
/* */
@dlupaescu
dlupaescu / ft_atoi.c
Last active August 6, 2019 13:00
Level: 2 | ft_atoi.c | print_bits.c
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_atoi.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: exam <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2015/08/21 18:09:18 by exam #+# #+# */
/* Updated: 2015/08/21 18:39:30 by exam ### ########.fr */
/* */
@dlupaescu
dlupaescu / aff_last_param.c
Last active August 29, 2015 14:28
Level: 0 | aff_last_param.c | only_a.c
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* aff_last_param.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: exam <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2015/08/21 17:04:17 by exam #+# #+# */
/* Updated: 2015/08/21 17:15:50 by exam ### ########.fr */
/* */
@dlupaescu
dlupaescu / first_word.c
Last active August 29, 2015 14:28
Level: 1 | first_word.c | repeat_alpha.c
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* first_word.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: exam <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2015/08/21 17:07:55 by exam #+# #+# */
/* Updated: 2015/08/21 17:29:38 by exam ### ########.fr */
/* */
@dlupaescu
dlupaescu / hidenp.c
Last active August 29, 2015 14:28
Level: 3 | hidenp.c | str_capitalizer.c
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* hidenp.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: exam <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2015/08/21 18:44:11 by exam #+# #+# */
/* Updated: 2015/08/21 19:19:57 by exam ### ########.fr */
/* */