× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Wayne Achenbaum wrote:
Hello all, I have a procedure in a service pgm that uses the strtok
function. I am trying to figure out how to handle consecutive delimiters. I
attended a session with Jon Paris  that had a handout the Power of
Prototyping. In the session we talked about using the function. I remember
him saying with slight modification the code could handle consecutive
delimiters. Does anyone know how handle the multiple delimiter issue??

The second parameter to "strtok()" is a character string consisting of the delimiter characters. If the parameter is defined as


* VALUE OPTIONS(*STRING)

then multiple delimiters should work just as easily as a single delimiter. (And I see no reason why that parameter shouldn't be prototyped that way to begin with!)

Cheers! Hans



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.