Rename almost_empty to is_almost_empty
authorLukas Jiriste <ljiriste@student.42prague.com>
Fri, 3 May 2024 06:58:45 +0000 (08:58 +0200)
committerLukas Jiriste <ljiriste@student.42prague.com>
Fri, 3 May 2024 06:58:45 +0000 (08:58 +0200)
src/main.c

index 5b18a73e3ea4ed33802a00f1b72c09e1b7228eb1..135ec54247c9435d322e7a815d7286a7ba9eb228 100644 (file)
@@ -6,7 +6,7 @@
 /*   By: ljiriste <marvin@42.fr>                    +#+  +:+       +#+        */
 /*                                                +#+#+#+#+#+   +#+           */
 /*   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);
 }