Getting a segmentation fault for the following:


/*
*
* Linked lists and an editor buffer
*/

/* A doubly-linked node structure.
*/
struct node {
char data;
struct node*next;
struct node*prev;

};

/* Your buffer structure ought to include at least two things:
* (1) Some form of a linked list using your node structure;...