Here is the equivalent C code for the given MIPS assembly Fibonacci function:

int fib(int n) {
    if (n <= 0) {
        return 0;
    } else if (n == 1) {
        return 1;
    } else {
        return fib(n-1) + fib(n-2);
    }
}

This function takes an integer n as an argument and returns the nth Fibonacci number. It uses recursion to calculate the result.
spam fails_task lang_mismatch pii not_appropriate hate_speech sexual_content quality toxicity humor helpfulness creativity violence