//unlimitedstr.h
struct usrstr
{
char str;
struct usrstr * next;
struct usrstr * back;
};
struct usrstr * inputstr();
int releasestr(struct usrstr *);
int printstr(struct usrstr *);
int printextstr(char *,struct usrstr *,char *);
//unlimitedstr.c
#include<stdio.h>
#include<stdlib.h>
#include"unlimitedstr.h"
struct usrstr
{
char str;
struct usrstr * next;
struct usrstr * back;
};
struct usrstr * inputstr();
int releasestr(struct usrstr *);
int printstr(struct usrstr *);
int printextstr(char *,struct usrstr *,char *);
//unlimitedstr.c
#include<stdio.h>
#include<stdlib.h>
#include"unlimitedstr.h"
//function : return a usrstr * ,it is a head of double link list which contains the user input string.
struct usrstr * inputstr()
{
char c;
int i;
struct usrstr * headstr;
struct usrstr * usrcpnow;
struct usrstr * usrcpnext;
headstr=(struct usrstr *)malloc(sizeof(struct usrstr));
if(headstr==NULL)
return NULL;
headstr->back=NULL;
usrcpnow=headstr;
for(i&