16 if(s[0]==0 || s[1]==0)
20 if(!head)
t_error(
"I cannot allocate further memory");
37 if(s[0]==0 || s[1]==0)
41 if(!head)
t_error(
"I cannot allocate further memory");
57 if(!head)
t_error(
"I cannot allocate further memory");
76 if(!head)
t_error(
"I cannot allocate further memory");
96 if(!head)
t_error(
"I cannot allocate further memory");
113 head=(
IX* )malloc(
sizeof(
IX));
114 if(!head)
t_error(
"I cannot allocate further memory");
132 head=(
IJX* )malloc(
sizeof(
IJX));
133 if(!head)
t_error(
"I cannot allocate further memory");
151 head=(
XYZ* )malloc(
sizeof(
XYZ));
152 if(!head)
t_error(
"I cannot allocate further memory");
175 printf(
"\nWarning::returning a NULL PHRASE pointer\n");
181 if(!head)
t_error(
"I cannot allocate further memory");
184 head->
word=(
char *)malloc((m+1)*
sizeof(char));
185 strcpy(head->
word, text);
202 printf(
" NULL LIST\n");
207 printf(
"%ld %ld\t",tmp->
i,tmp->
j);
208 while(tmp->
next!=NULL){
211 if(count%columns==0) putchar(
'\n');
212 printf(
"%ld %ld\t",tmp->
i,tmp->
j);
229 printf(
" NULL LIST\n");
234 printf(
"%ld %ld %ld %ld\t",tmp->
i,tmp->
j,tmp->
k,tmp->
l);
235 while(tmp->
next!=NULL){
238 if(count%columns==0) putchar(
'\n');
239 printf(
"%ld %ld %ld %ld\t",tmp->
i,tmp->
j,tmp->
k,tmp->
l);
255 printf(
" NULL LIST\n");
260 fprintf(ostream,
"%ld %ld %ld %ld\t",tmp->
i,tmp->
j,tmp->
k,tmp->
l);
261 while(tmp->
next!=NULL){
264 if(count%columns==0) {putchar(
'\n');}
265 fprintf(ostream,
"%ld %ld %ld %ld\t",tmp->
i,tmp->
j,tmp->
k,tmp->
l);
281 printf(
" NULL LIST\n");
286 printf(
"%f %f\t",tmp->
x,tmp->
y);
287 while(tmp->
next!=NULL){
290 if(count%columns==0) putchar(
'\n');
291 printf(
"%f %f\t",tmp->
x,tmp->
y);
305 printf(
" NULL LIST\n");
310 printf(
"%ld %f\t",tmp->
i,tmp->
x);
311 while(tmp->
next!=NULL){
314 if(count%columns==0) putchar(
'\n');
315 printf(
"%ld %f\t",tmp->
i,tmp->
x);
330 printf(
" NULL LIST\n");
335 printf(
"%ld %ld %f\n", tmp->
i, tmp->
j, tmp->
x);
336 while( tmp->
next!=NULL){
339 if(count%columns==0) putchar(
'\n');
340 printf(
"%ld %ld %f\n", tmp->
i, tmp->
j, tmp->
x);
355 printf(
" NULL LIST\n");
360 printf(
"%f %f %f\n", tmp->
x, tmp->
y, tmp->
z);
361 while( tmp->
next!=NULL){
364 if(count%columns==0) putchar(
'\n');
365 printf(
"%f %f %f\n", tmp->
x, tmp->
y,tmp->
z);
381 printf(
" NULL LIST\n");
386 printf(
"%s\n", tmp->
word);
387 while( tmp->
next!=NULL){
390 printf(
"%s\n", tmp->
word);
393 printf(
"%s ", tmp->
word);
394 while( tmp->
next!=NULL){
397 if(count%columns==0) putchar(
'\n');
398 printf(
"%s ", tmp->
word);
497 t_error(
"This element does not exist in the list");
500 }
else if (point==1) {
515 t_error(
"This element does not exist in the list");
518 }
else if (point==1) {
532 t_error(
"This element does not exist in the list");
535 }
else if (point==1) {
550 t_error(
"This element does not exist in the list");
568 t_error(
"This element does not exist in the list");
571 }
else if (point==1) {
585 t_error(
"This element does not exist in the list");
588 }
else if (point==1) {
607 if(head==NULL)
t_error(
"NULL cannot be deleted");
625 if(head==NULL)
t_error(
"NULL cannot be deleted");
645 if(head==NULL)
t_error(
"NULL cannot be deleted");
666 if(head==NULL)
t_error(
"NULL cannot be deleted");
684 if(head==NULL)
t_error(
"NULL cannot be deleted");
703 if(head==NULL)
t_error(
"NULL cannot be deleted");
722 if(head==NULL)
t_error(
"NULL cannot be deleted");
912 if(head==NULL)
return element;
914 while(tmp->
next!=NULL) tmp=tmp->
next;
933 while(tmp->
next!=NULL) tmp=tmp->
next;
949 }
else if(element==NULL){
952 while(home->
next!=NULL){
968 if(head==NULL)
return NULL;
970 while(tmp->
next!=NULL) tmp=tmp->
next;
990 }
else if(head==NULL){
993 while(tmp->
next!=NULL && m<n) {back=tmp;tmp=tmp->
next; m++;}
997 while(back->next!=NULL) back=back->
next;
1001 else if(tmp->
next==NULL)