how to get out of function in c

#include <stdio.h>

void myFunction() {
    printf("Inside the function\n");

    // Use return statement to exit the function
    return;
}

int main() {
    printf("Before calling the function\n");

    // Call the function
    myFunction();

    printf("After calling the function\n");

    return 0;
}