From: Lukas Jiriste Date: Thu, 24 Oct 2024 12:38:33 +0000 (+0200) Subject: Make SWITCH argument turn any output off in ex06 X-Git-Url: https://git.ljiriste.work/?a=commitdiff_plain;h=f1fb99fe6dfddf6559f525ec67795b3f13f0555c;p=42%2FCPP_Module_01 Make SWITCH argument turn any output off in ex06 --- diff --git a/ex06/Harl.cpp b/ex06/Harl.cpp index eeb8097..cab6ebe 100644 --- a/ex06/Harl.cpp +++ b/ex06/Harl.cpp @@ -45,6 +45,8 @@ ssize_t Harl::get_level_num(std::string level) for (ssize_t i(0); i < 4; ++i) if (m_levels[i] == level) return (i); + if ("SWITCH" == level) + return (4); return (-1); }