searching a character in a string

Posted by iSight on Stack Overflow See other posts from Stack Overflow or by iSight
Published on 2010-05-09T07:41:05Z Indexed on 2010/05/09 7:48 UTC
Read the original article Hit count: 195

Filed under:

hi,

how can find position of a character in a string, and get the substring till that character.

say

char* test = "Hello world, I come back";

I want to find first occurrence 'l' character.

© Stack Overflow or respective owner

searching a character in a string

Posted by iSight on Stack Overflow See other posts from Stack Overflow or by iSight
Published on 2010-05-09T06:55:02Z Indexed on 2010/05/09 6:58 UTC
Read the original article Hit count: 195

Filed under:

Hi,

How can i search a character " in a string.

© Stack Overflow or respective owner

Related posts about c