Advertisement
Guest User

Untitled

a guest
Apr 22nd, 2018
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.27 KB | None | 0 0
  1. unsigned int index = 0;
  2.     while (index < length)
  3.     {
  4.         if (string[index] == '\r')
  5.         {
  6.             if (strncmp("\r\n\r\n", string + index, 4) == 0)
  7.             {
  8.                 return string + index + 4;
  9.             }
  10.         }
  11.         ++index;
  12.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement