comparison lib-src/gnuslib.c @ 171:929b76928fce r20-3b12

Import from CVS: tag r20-3b12
author cvs
date Mon, 13 Aug 2007 09:47:52 +0200
parents 43dd3413c7c7
children 2d532a89d707
comparison
equal deleted inserted replaced
170:98a42ee61975 171:929b76928fce
221 } /* send_string */ 221 } /* send_string */
222 222
223 /* 223 /*
224 read_line -- read a \n terminated line from a socket 224 read_line -- read a \n terminated line from a socket
225 */ 225 */
226 int read_line(s,dest) 226 int read_line(int s, char *dest)
227 int s;
228 char *dest;
229 { 227 {
230 char *index = NULL; 228 char *index = NULL;
231 int length; 229 int length;
232 int offset=0; 230 int offset=0;
233 char buffer[GSERV_BUFSZ+1]; 231 char buffer[GSERV_BUFSZ+1];