home *** CD-ROM | disk | FTP | other *** search
/ The Devil's Doorknob BBS Capture (1996-2003) / devilsdoorknobbbscapture1996-2003.iso / Dloads / PROGRAMM / CTUTOR.ZIP / SOURCE.ZIP / BACKWARD.C < prev    next >
Text File  |  1986-05-27  |  512b  |  23 lines

  1. main()
  2. {
  3. char line_of_char[80];
  4. int index = 0;
  5.  
  6.    strcpy(line_of_char,"This is a string.\n");
  7.  
  8.    forward_and_backwards(line_of_char,index);
  9.  
  10. }
  11.  
  12. forward_and_backward(line_of_char,index)
  13. char line_of_char[];
  14. int index;
  15. {
  16.    if (line_of_char[index]) {
  17.       printf("%c",line_of_char[index]);
  18.       index++;
  19.       forward_and_backward_call(line_of_char,index);
  20.    }
  21.    printf("%c",line_of_char[index]);
  22. }
  23.