locked
Find a special charactor using an api RRS feed

  • Question

  •  

    hi all,

    there is one question i would like to ask

    i have an array arr[] ,i want to know that this array has special symbol '(' in any of the index.
    if there is a way to do it using any API please let me know


    thanks in advance

    Thursday, April 3, 2008 6:57 AM

Answers

  •  There are functions like strchr and its cousins. If your array is of type char or wchar_t, this would work perfectly.

    Look for strchr in msdn and it will explain the different options and other available functions for you.

    Thursday, April 3, 2008 9:07 AM

All replies

  •  There are functions like strchr and its cousins. If your array is of type char or wchar_t, this would work perfectly.

    Look for strchr in msdn and it will explain the different options and other available functions for you.

    Thursday, April 3, 2008 9:07 AM
  • Thanks this is exactly what i was searching for...

    Thursday, April 3, 2008 9:28 AM