From 1588f6ec5f34ada876ea35cd4dad2549e9f5681e Mon Sep 17 00:00:00 2001 From: Xamora Date: Wed, 4 Dec 2024 17:37:38 +0100 Subject: [PATCH] remove useless function --- template/_.h | 2 -- template/mylib.c | 9 --------- 2 files changed, 11 deletions(-) diff --git a/template/_.h b/template/_.h index a2aa7e8..3f93823 100644 --- a/template/_.h +++ b/template/_.h @@ -23,5 +23,3 @@ int number_of_element(char *str, char c); long gmc(long a, long b); long lmc(long a, long b); long lmcs(int array[], int n); - -int strslen(char **strs); diff --git a/template/mylib.c b/template/mylib.c index d90d2d0..a8a4205 100644 --- a/template/mylib.c +++ b/template/mylib.c @@ -82,12 +82,3 @@ long lmcs(int array[], int n) { result = lmc(result, array[i]); return result; } - -int strslen(char **strs) { - int len = 0; - for (int i = 0; strs[i] != NULL; i++) - len++; - - return len; -} -