cybersecurity · beginner · ~15 min · safe pentest lab

Does the bundle fit?

Check a size against a limit.

Challenge

Implement int fits_archive(long total, long max) returning 1 if total <= max, else 0.

Starter code

int fits_archive(long total, long max) {
    /* TODO */
    return 0;
}

Solve this exercise in the browser editor — compile and run against the test harness, no setup required.