Search:

Type: Posts; User: hypper

Search: Search took 0.00 seconds.

  1. It works now, perfectly. Full code: int...

    It works now, perfectly.
    Full code:



    int main()
    {
    char *p="parparpar";
    int total=0;
    while ( (p=strstr(p,"par")) != NULL )
  2. Salem thanks but its not working, I tried your...

    Salem thanks but its not working, I tried your code but its not returning what it should.
    For the code below, it returns 4 instead of 2.

    Thanks for your help, waiting for more answers if...
  3. How to use "strstr" to find all occurrences of a substring in a string not only first

    Hello guys.
    Im having troubles with the "strstr" function.

    Im trying to count the number of times a substring appears in a string.
    For this im using the STRSTR function but that function returns...
Results 1 to 3 of 3