home *** CD-ROM | disk | FTP | other *** search
/ The C Users' Group Library 1994 August / wc-cdrom-cusersgrouplibrary-1994-08.iso / vol_100 / 183_01 / example1.ltr < prev    next >
Text File  |  1986-02-04  |  616b  |  39 lines

  1. ..
  2. ..  Letter example 1.
  3. ..
  4. ..  General letter type document
  5. ..
  6. .dt
  7. .sp
  8. .as
  9. Larry Karnis
  10. 601 Indian Rd. #3
  11. Toronto, Ontario
  12. M6P 2C4
  13. .ae
  14. .sp 2
  15. You're right! There was a bug in _nSpace()_.  The routine should read:
  16. .sp
  17. .in +5
  18. .fi off
  19. .ju off
  20. ^nSpace(str, index)
  21. char *str;
  22. int index;
  23. {
  24. ~~for( ; str[index]; index++)
  25. ~~~~if (str[index] == ' ')
  26. ~~~~~~return index;
  27. }^
  28. .fi on
  29. .ju on
  30. .in -5
  31. .sp
  32. That should fix any lingering problems (I hope!). If you find any more
  33. 'features', please let me or one of the other entymologists know.
  34. .sp 2
  35. Thanks for your help!
  36. .sp 2
  37. .sg Jon Simkins
  38.  
  39.