fork download
  1. #include <iostream>
  2. #include <cstring>
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7. char response[200]="HTTP/1.1 HELLO";
  8. const char http[] = "HTTP/1.1";
  9. if (strstr(response,http) == response) cout << "YAY";
  10. }
Success #stdin #stdout 0s 3412KB
stdin
Standard input is empty
stdout
YAY