C language algorithm to check whether a string is a substring of another string
The complete source code of the algorithm of C language to check whether a string is a substring of another string (definition, implementation, main function test)
#include <iostream>
#include <string>
bool isRotation( std::string s1, std::string s2 )