int check_cmd(int argc, char **argv) { int i; int cycles; i = 1; cycles = -1; if (!ft_strcmp(argv[i], "-dump")) { if (i + 2 < argc) { if ((cycles = ft_atoi(argv[i + 1])) <= 0) ft_er("Cycle must be positiv"); i += 2; } else ft_er("Wrong number of arguments"); } while (i < argc) { i = check_n(argc, argv, i); i = check_a(argc, argv, i); i = check_c(argv, i); } return (cycles); }
FunctionObj(Function f, T a, T b, T c) : f(f), a(a), b(b), c(c), d(static_cast<T>(0)) { check_c(); }
FunctionObj(Function f, T a, T b, T c, T d) : f(f), a(a), b(b), c(c), d(d) { check_c(); }