/* 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 */
/* */
/* ************************************************************************** */
#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);
free(cwd);
line = readline(prompt);
free(prompt);
- if (!almost_empty(line))
+ if (!is_almost_empty(line))
add_history(line);
return (line);
}