約 55 件の結果
リンクを新しいタブで開く
  1. Strings in C (strstr function) - Stack Overflow

    2021年8月19日 · I'm trying to reproduce the behavior of the strstr() function, which tries to find a substring in a string and for that I created the following function and compared it to the original. I did …

  2. c - How to return value using strstr function? - Stack Overflow

    2014年3月19日 · The question is to input two strings: S1 and S2. The objective is to find whether there exist a substring, and I know strstr can be used. If there exists a substring, print the index at S1 at …

  3. c - Recreate the strstr () function - Stack Overflow

    2018年3月6日 · Hello i am trying to make my own strstr() function and i can't figure out why it is returning a segmentation fault.I am trying to search a string within another string and then return a …

  4. strstr() function like, that ignores upper or lower case

    str2="two"; I would like to know if there is any function that checks for a match of the second string in the first one,and returns me a pointer to the first occurrence, something like strstr(), but which doesn't …

  5. Performance comparison: strstr () vs std::string::find ()

    2012年8月3日 · Can someone please explain why I should use strstr or string find() ? Which one is faster, at where ?

  6. c - strstr () function - Stack Overflow

    2013年6月3日 · This is because your string contains the newline character. From the fgets documentation: A newline character makes fgets stop reading, but it is considered a valid character …

  7. Criar função strstr / Retorno ponteiro em C - Stack Overflow em ...

    2017年10月31日 · Estou tentando refazer a função strstr (procura um valor passado por parâmetro num texto, se encontrar mostra o resto) por conta. Esse é meu código atual, ele já chegou a funcionar mas …

  8. c - implementation of strstr () function - Stack Overflow

    2010年8月24日 · implementation of strstr () function Asked 15 years, 4 months ago Modified 8 years, 11 months ago Viewed 41k times

  9. c++ - Is there a reverse function for strstr - Stack Overflow

    2009年10月28日 · I am trying to find a similar function to strstr that searches a substring starting from the end towards the beginning of the string.

  10. strstr () for a string that is NOT null-terminated - Stack Overflow

    2011年12月21日 · How do I do the in-place equivalent of strstr() for a counted string (i.e. not null-terminated) in C?