aboutsummaryrefslogtreecommitdiff
path: root/c04/ex00
diff options
context:
space:
mode:
authorCabergs Charles <cacharle@e-r6-p7.s19.be>2019-07-06 08:42:30 +0200
committerCabergs Charles <cacharle@e-r6-p7.s19.be>2019-07-06 08:42:30 +0200
commit244f5209ba7885daa513e3780b66df454422b910 (patch)
treec2123d55a7431de9bb55371dcc78c955da607c6f /c04/ex00
parent1efffca20580601c99fce13f0ade1b36ed5665a4 (diff)
downloadpiscine-244f5209ba7885daa513e3780b66df454422b910.tar.gz
piscine-244f5209ba7885daa513e3780b66df454422b910.tar.bz2
piscine-244f5209ba7885daa513e3780b66df454422b910.zip
c03 and begin c04
Diffstat (limited to 'c04/ex00')
-rw-r--r--c04/ex00/ft_strlen.c21
1 files changed, 21 insertions, 0 deletions
diff --git a/c04/ex00/ft_strlen.c b/c04/ex00/ft_strlen.c
new file mode 100644
index 0000000..271088d
--- /dev/null
+++ b/c04/ex00/ft_strlen.c
@@ -0,0 +1,21 @@
+/* ************************************************************************** */
+/* */
+/* ::: :::::::: */
+/* ft_strlen.c :+: :+: :+: */
+/* +:+ +:+ +:+ */
+/* By: cacharle <charles.cabergs@gmail.com> +#+ +:+ +#+ */
+/* +#+#+#+#+#+ +#+ */
+/* Created: 2019/07/06 08:31:20 by cacharle #+# #+# */
+/* Updated: 2019/07/06 08:32:00 by cacharle ### ########.fr */
+/* */
+/* ************************************************************************** */
+
+int ft_strlen(char *str)
+{
+ int counter;
+
+ counter = 0;
+ while (str[counter])
+ counter++;
+ return (counter);
+}