Hi, could someone tell me the syntax for the strstr function in C?

Recommended Answers

All 3 Replies

Here you go.

Next time just put the whole phrase in google and you would get results which would surprise you. (I mean you can easily get answers using Google)

slight correction to the page ~s.o.s~ linked to: strstr returns a char*, not a char. They did mention that in the description, but it was incorrect in the function declaration.

AH...a mistake on that site..

No problem take a look here.

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.