summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ft_checkpadd.c17
-rw-r--r--ft_printf.c18
-rw-r--r--ft_putchar.c18
-rw-r--r--ft_puthexlower.c18
-rw-r--r--ft_puthexupper.c18
-rw-r--r--ft_putnbr.c18
-rw-r--r--ft_putstr.c18
-rw-r--r--ft_putunsigned.c18
8 files changed, 143 insertions, 0 deletions
diff --git a/ft_checkpadd.c b/ft_checkpadd.c
index a1881d1..b395620 100644
--- a/ft_checkpadd.c
+++ b/ft_checkpadd.c
@@ -1,3 +1,20 @@
+/*
+ft_printf
+Copyright (C) 2026 yctct
+
+This program is free software: you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation, either version 3 of the License, or
+(at your option) any later version.
+
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with this program. If not, see <https://www.gnu.org/licenses/>.
+*/
#include "ft_printf.h"
diff --git a/ft_printf.c b/ft_printf.c
index 1058f5b..87655c5 100644
--- a/ft_printf.c
+++ b/ft_printf.c
@@ -1,3 +1,21 @@
+/*
+ft_printf
+Copyright (C) 2026 yctct
+
+This program is free software: you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation, either version 3 of the License, or
+(at your option) any later version.
+
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with this program. If not, see <https://www.gnu.org/licenses/>.
+*/
+
// for specifier 'c', we use int because char will be promoted to
// int anyway
diff --git a/ft_putchar.c b/ft_putchar.c
index 4ff8dda..0db58e9 100644
--- a/ft_putchar.c
+++ b/ft_putchar.c
@@ -1,3 +1,21 @@
+/*
+ft_printf
+Copyright (C) 2026 yctct
+
+This program is free software: you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation, either version 3 of the License, or
+(at your option) any later version.
+
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with this program. If not, see <https://www.gnu.org/licenses/>.
+*/
+
#include "ft_printf.h"
diff --git a/ft_puthexlower.c b/ft_puthexlower.c
index 282328a..092f2a0 100644
--- a/ft_puthexlower.c
+++ b/ft_puthexlower.c
@@ -1,3 +1,21 @@
+/*
+ft_printf
+Copyright (C) 2026 yctct
+
+This program is free software: you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation, either version 3 of the License, or
+(at your option) any later version.
+
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with this program. If not, see <https://www.gnu.org/licenses/>.
+*/
+
// parameter is unsigned long so function does not
// overflow when LONG_MAX is the address
diff --git a/ft_puthexupper.c b/ft_puthexupper.c
index b5518bf..94b4087 100644
--- a/ft_puthexupper.c
+++ b/ft_puthexupper.c
@@ -1,3 +1,21 @@
+/*
+ft_printf
+Copyright (C) 2026 yctct
+
+This program is free software: you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation, either version 3 of the License, or
+(at your option) any later version.
+
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with this program. If not, see <https://www.gnu.org/licenses/>.
+*/
+
// using unsigned int as a paramter to deal with with negative numbers
#include "ft_printf.h"
diff --git a/ft_putnbr.c b/ft_putnbr.c
index fe138ff..6cb06e0 100644
--- a/ft_putnbr.c
+++ b/ft_putnbr.c
@@ -1,3 +1,21 @@
+/*
+ft_printf
+Copyright (C) 2026 yctct
+
+This program is free software: you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation, either version 3 of the License, or
+(at your option) any later version.
+
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with this program. If not, see <https://www.gnu.org/licenses/>.
+*/
+
#include "ft_printf.h"
diff --git a/ft_putstr.c b/ft_putstr.c
index 19a2c37..44f3343 100644
--- a/ft_putstr.c
+++ b/ft_putstr.c
@@ -1,3 +1,21 @@
+/*
+ft_printf
+Copyright (C) 2026 yctct
+
+This program is free software: you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation, either version 3 of the License, or
+(at your option) any later version.
+
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with this program. If not, see <https://www.gnu.org/licenses/>.
+*/
+
// we use putchar to count each character
diff --git a/ft_putunsigned.c b/ft_putunsigned.c
index 8908de0..255525d 100644
--- a/ft_putunsigned.c
+++ b/ft_putunsigned.c
@@ -1,3 +1,21 @@
+/*
+ft_printf
+Copyright (C) 2026 yctct
+
+This program is free software: you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation, either version 3 of the License, or
+(at your option) any later version.
+
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with this program. If not, see <https://www.gnu.org/licenses/>.
+*/
+
#include "ft_printf.h"