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

What is the most efficient way?

Name: Anonymous 2008-05-13 23:06

Ok, so I have socket in C, and I want to read one line from the socket, not including the ending new line. I want to write a function that returns a malloc'd string containing the line.

Name: Anonymous 2008-05-14 6:32

>>19
I think you're thinking of fgets(), which is pretty fucking useless.
fgetln() isn't in standard C, but it works on every operating system that isn't complete shit.

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