 if (user->first_post == NULL){
        return 0;
        }
    else{
         Post *curr = user->first_post;
    while(curr != NULL){
        char *date_char = ctime(curr->date);
        fprintf(stdout,"------------------------------------------\nPosts:\nFrom: %s\nDate: %s\n\n%s\n\n==\n", curr->author, date_char, curr->contents);
        curr = curr->next;

    }
    return 0;
    }
what's wrong with this code?