Skip to content

Commit fb7e4b6

Browse files
committed
initial commit
0 parents  commit fb7e4b6

19 files changed

+219
-0
lines changed

.editorconfig

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
root = true
2+
3+
[*]
4+
charset = utf-8
5+
end_of_line = lf
6+
indent_size = 2
7+
tab_width = 2
8+
indent_style = space
9+
insert_final_newline = true
10+
trim_trailing_whitespace = true
11+
12+
[{Makefile,*.{c,h,mk}}]
13+
indent_size = 4
14+
tab_width = 4
15+
indent_style = tab
16+
17+
[*.{patch,txt}]
18+
insert_final_newline = false
19+
trim_trailing_whitespace = false

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
.cache
2+
.ft

.vscode/extensions.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"recommendations": [
3+
"vscode-icons-team.vscode-icons",
4+
],
5+
}

.vscode/settings.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"vsicons.associations.folders": [
3+
{ "icon": "module", "extensions": ["module"], "format": "svg" },
4+
{ "icon": "temp", "extensions": [".cache"], "format": "svg" },
5+
{ "icon": "certificate", "extensions": [".ft"], "format": "svg" },
6+
],
7+
"vsicons.associations.files": [
8+
{ "icon": "dependencies", "extensions": ["ft_dependencies.ft", "ft_peer_dependencies.ft"], "filename": true, "format": "svg" },
9+
],
10+
}

module/b.ft.test/ft_dependencies.ft

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
h.hello
2+
f.ft_puts.test

module/f.ft_puts.test/ft_dependencies.ft

Whitespace-only changes.

module/f.ft_puts.test/ft_peer_dependencies.ft

Whitespace-only changes.

module/f.ft_puts.test/ft_puts.c

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
/* ************************************************************************** */
2+
/* */
3+
/* ::: :::::::: */
4+
/* fake_file_name (file name is useless too) :+: :+: :+: */
5+
/* +:+ +:+ +:+ */
6+
/* By: 42header-remover <whatever@example.com> +#+ +:+ +#+ */
7+
/* +#+#+#+#+#+ +#+ */
8+
/* Created: 1970/01/01 00:00:00 by VCS handles #+# #+# */
9+
/* Updated: 1970/01/01 00:00:00 by file history ### ########.fr */
10+
/* */
11+
/* ************************************************************************** */
12+
13+
#include "ft.h"
14+
15+
#include <stdio.h>
16+
17+
t_err ft_puts(const char *str)
18+
{
19+
return (printf("%s\n", str) < 0);
20+
}

module/h.ft/ft.h

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
/* ************************************************************************** */
2+
/* */
3+
/* ::: :::::::: */
4+
/* fake_file_name (file name is useless too) :+: :+: :+: */
5+
/* +:+ +:+ +:+ */
6+
/* By: 42header-remover <whatever@example.com> +#+ +:+ +#+ */
7+
/* +#+#+#+#+#+ +#+ */
8+
/* Created: 1970/01/01 00:00:00 by VCS handles #+# #+# */
9+
/* Updated: 1970/01/01 00:00:00 by file history ### ########.fr */
10+
/* */
11+
/* ************************************************************************** */
12+
13+
#ifndef FT_H
14+
# define FT_H
15+
16+
# include <stddef.h>
17+
# include <stdbool.h>
18+
19+
typedef bool t_err;
20+
21+
t_err ft_write(const char *buf, size_t len);
22+
t_err ft_puts(const char *str);
23+
24+
#endif

module/h.ft/ft_dependencies.ft

Whitespace-only changes.

0 commit comments

Comments
 (0)