Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Simple readline algorithm for Networking

Name: Anonymous 2008-08-19 16:52

Are there any simple standardized way of reading a full line from a socket that mallocs the memory for you? If so, what are they? If not, is there a way to do it in approximately O(1) time (obviously not including the time for the memory allocation).

Name: Anonymous 2008-08-20 15:30

>>26
0/10

I agree with >>25 .  You can use C to make programs that do all sorts of cool shit, but you can't do cool shit inside the programming language itself unless you resort to code generation or other such non-C solutions.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List