home *** CD-ROM | disk | FTP | other *** search
/ Oakland CPM Archive / oakcpm.iso / cpm / cug / softt-3.lbr / INDEX.DOC < prev    next >
Text File  |  1984-07-05  |  640b  |  39 lines

  1. .bp 1
  2. .in 0
  3. .he 'INDEX (2)'11/13/78'INDEX (2)'
  4. .fo ''-#-''
  5. .fi
  6. .in 7
  7. .ti -7
  8. NAME
  9. .br
  10. index - find character c in string str
  11. .sp 1
  12. .ti -7
  13. SYNOPSIS
  14. .br
  15. .nf
  16. loc = index(str, c)
  17.  
  18. character str(ARB), c
  19. integer loc is returned as the location is str where c was located
  20. .fi
  21. .sp 1
  22. .ti -7
  23. DESCRIPTION
  24. .br
  25. Returns the index of the first character in 'str' that matches 'c',
  26. or zero if 'c' isn't in the array.
  27. 'Str' is an ascii character array terminated with an EOS marker.
  28. 'c' is a single ascii character.
  29. .sp 1
  30. .ti -7
  31. SEE ALSO
  32. .br
  33. match, getpat
  34. .sp 1
  35. .ti -7
  36. DIAGNOSTICS
  37. .br
  38. None
  39.