sync
This commit is contained in:
+8
-8
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -0,0 +1,23 @@
|
||||
|
||||
#
|
||||
# Copyright (c) 2021 Guy Baconniere.
|
||||
#
|
||||
## How to use this Makefile
|
||||
#
|
||||
# cd git
|
||||
# mkdir ex00
|
||||
# cd ex00
|
||||
# make -f ../../Makefile ex00
|
||||
#
|
||||
|
||||
clone:
|
||||
@git clone git@vogsphere.42lausanne.ch:vogsphere/intra-uuid-8c6298c5-3398-4408-8f72-f127b4ef29de-3736152 git
|
||||
|
||||
cc:
|
||||
@norminette -R CheckForbiddenSourceHeader
|
||||
@gcc -Wall -Wextra -Werror -o a.out *.c
|
||||
@./a.out
|
||||
@rm -f a.out
|
||||
|
||||
all: clone
|
||||
|
||||
Binary file not shown.
@@ -0,0 +1,21 @@
|
||||
/* ************************************************************************** */
|
||||
/* */
|
||||
/* ::: :::::::: */
|
||||
/* ft.h :+: :+: :+: */
|
||||
/* +:+ +:+ +:+ */
|
||||
/* By: gbaconni <gbaconni@42lausanne.ch> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2021/08/20 10:17:09 by gbaconni #+# #+# */
|
||||
/* Updated: 2021/08/20 12:05:50 by gbaconni ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
#ifndef FT_H
|
||||
# define FT_H
|
||||
|
||||
void ft_putchar(char c);
|
||||
void ft_swap(int *a, int *b);
|
||||
void ft_putstr(char *str);
|
||||
int ft_strlen(char *str);
|
||||
int ft_strcmp(char *s1, char *s2);
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,19 @@
|
||||
/* ************************************************************************** */
|
||||
/* */
|
||||
/* ::: :::::::: */
|
||||
/* main.c :+: :+: :+: */
|
||||
/* +:+ +:+ +:+ */
|
||||
/* By: gbaconni <gbaconni@42lausanne.ch> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2021/08/20 10:26:50 by gbaconni #+# #+# */
|
||||
/* Updated: 2021/08/20 10:34:14 by gbaconni ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
#include "ft.h"
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
(void) argc;
|
||||
(void) argv;
|
||||
}
|
||||
Executable
+8
@@ -0,0 +1,8 @@
|
||||
#!/bin/sh
|
||||
set -e
|
||||
#norminette -R CheckForbiddenSourceHeader ft_*.c
|
||||
norminette -R CheckDefine -R CheckForbiddenSourceHeader *.c
|
||||
gcc -Wall -Wextra -Werror -o a.out *.c
|
||||
echo $(basename $PWD):
|
||||
./a.out
|
||||
rm -f a.out
|
||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user