Hello, im having abit of a problem, I'm trying to compare two strings for matching characters, so far I have used the 'strpbrk' function but this is only returning the first instance of a match. Can someone please tell me what I could use to find all the matches.
thank you very much.

Recommended Answers

All 4 Replies

Hello, im having abit of a problem, I'm trying to compare two strings for matching characters, so far I have used the 'strpbrk' function but this is only returning the first instance of a match. Can someone please tell me what I could use to find all the matches.
thank you very much.

Assembly language.

> Assembly language.
Except for the fact that this is a C/C++ forum...

> Assembly language.
Except for the fact that this is a C/C++ forum...

As may be, but C can call an assy coded binary.
And in old fashioned dos assy, there are lots of subroutines to deal with ascii input a byte at a time, and then send it to std out.

Now, the prof mite not like that in an academic course, but if someone is trying to just solve the problem, its duck soup in assy.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.