Does this work?
typedef struct user {  
    char name[MAX_NAME];  
    char profile_pic[MAX_NAME];  // This is a *filename*, not the file contents.  
    struct post *first_post;  
    struct user *friends[32];  
    struct user *next;  
} User;  
  
int something(const char *name. User *head ){

 User *friend = head;
char *friend_name1 = (friend->friends[i])->name;

return 1;

}