int update_pic(User *user, const char *filename) {
    if (strlen(filename) + 1 > MAX_NAME) {
        return 2;
    }

    struct stat foo;
    if (stat(filename, &foo) != 0) {
        return 1;
    }

    strcpy(user->profile_pic, filename);
    return 0;
}
/* * Change the filename for the profile pic of the given user. * * Return: * - 0 on success. * - 1 if the file does not exist or cannot be opened. * - 2 if the filename is too long. */
Has to be valid for C99