Is there a reverse function for strstr

后端 未结 17 2347
闹比i
闹比i 2020-12-18 18: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.

17条回答
  •  借酒劲吻你
    2020-12-18 19:28

    Long story short:

    Nope - there is no function in the C-library that does what you need..

    But as others have pointed out: It's not rocket-science to write such a function...

提交回复
热议问题