Posts by Mazy999 • 71 points
3 posts
-
1
votes1
answer111
viewsQ: how to force a buffer to behave like a string in C?
I am receiving a buffer from the internet, I believe that to go through this buffer and find the last character, you need to find the character ' 0'. But there is no ' 0' in a buffer. It is possible…
-
5
votes0
answers183
viewsQ: State machine that locates the first line breaks, in C
How to make a state machine in C, using decision commands (if, else) to go through a buffer received from the internet, byte by byte, in order to locate the first line breaks (\n\n), and only then…
-
1
votes1
answer92
viewsQ: Remove http header in socket C
I made a socket in C. This program is command-line operated and compiled over Linux. It takes as parameter a complete URI and a file name, and then connects to the server, retrieves the page and…