TIP: Click on subject to list as thread! ANSI
echo: cis.languages
to: Jeff Dege 76426,211 (X)
from: Pete Lyall 76703,4230
date: 1990-06-14 10:29:24
subject: #4363-help with `c` index()

#: 4366 S3/Languages
    14-Jun-90  10:29:24
Sb: #4363-help with 'c' index()
Fm: Pete Lyall 76703,4230
To: Jeff Dege 76426,211 (X)

Just a couple of quickie additions to Jeff's code:

1) m should be 'm' in the index() call...

2) You may want to make the position (p - string + 1) so you can enumerate
   from 1, as is typical in other languages for string operations. This
   is purely optional.

Pete

SOURCE: compuserve via textfiles.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.