From c14e1907b7f036097808588918993f19d136add5 Mon Sep 17 00:00:00 2001 From: Lukas Jiriste Date: Fri, 3 May 2024 08:58:45 +0200 Subject: [PATCH] Rename almost_empty to is_almost_empty --- src/main.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main.c b/src/main.c index 5b18a73..135ec54 100644 --- a/src/main.c +++ b/src/main.c @@ -6,7 +6,7 @@ /* By: ljiriste +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2024/04/26 13:11:47 by ljiriste #+# #+# */ -/* Updated: 2024/05/02 14:53:17 by ljiriste ### ########.fr */ +/* Updated: 2024/05/02 15:02:14 by ljiriste ### ########.fr */ /* */ /* ************************************************************************** */ @@ -34,11 +34,11 @@ void print_help(void) #ifndef NOLEAKS -// A string is "almost_empty" if it: +// A string "is_almost_empty" if it: // is a NULL pointer // is an empty string // only contains whitespace -int almost_empty(const char *str) +int is_almost_empty(const char *str) { if (!str) return (1); @@ -62,7 +62,7 @@ char *rl_get_line(void) free(cwd); line = readline(prompt); free(prompt); - if (!almost_empty(line)) + if (!is_almost_empty(line)) add_history(line); return (line); } -- 2.30.2