From: Lukas Jiriste Date: Fri, 3 May 2024 06:58:45 +0000 (+0200) Subject: Rename almost_empty to is_almost_empty X-Git-Url: https://git.ljiriste.work/?a=commitdiff_plain;h=c14e1907b7f036097808588918993f19d136add5;p=42%2Fminishell.git Rename almost_empty to is_almost_empty --- 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); }