All
Thanks to your help I was able to replace

      for ( i = 0; i < Max; i++ ) {
              if ( s[i] == S[Sptr] ) {
                      if ( i == Limit ) {
                              S[Sptr] = s[0];
                      }
                      else {
                              S[Sptr] = s[i+1];
                      }
                      i = Max;
              }
      }

with

      S[Sptr] = *((strchr(s,S[Sptr]))+1);

... where s and S are each a char *, and Sptr is an int.

Thank you
Regards
Fred James

_______________________________________________
EUGLUG mailing list
[email protected]
http://www.euglug.org/mailman/listinfo/euglug

Reply via email to