fork(3) download
  1. #include <stdio.h>
  2. #include <stdint.h>
  3.  
  4. char pv[] = "ololohttptrololo";
  5.  
  6. int main() {
  7. int i = 0;
  8. while (i < 13) {
  9. if (*(uint32_t *)&(pv[i]) == 0x70747468) {
  10. printf("'http' found at %d\n", i);
  11. }
  12. ++i;
  13. }
  14. return 0;
  15. }
  16.  
Success #stdin #stdout 0s 4292KB
stdin
Standard input is empty
stdout
'http' found at 5