Subject | Hash | Author | Date (UTC) |
---|---|---|---|
Added Conn_get_line. | 5916ac4c9544d242a21ac50178efae893dff4806 | Catalin(ux) M. BOIE | 2008-07-04 08:59:27 |
Prepared to use duilder (my custom builder). | 058d181795e64c0d1a82d587e7b1d858b7af87b2 | Catalin(ux) M. BOIE | 2008-03-21 13:37:19 |
Populated .gitignore file. | e549ac0271ac654f039d5a04a0708d25030b0ed6 | Catalin(ux) M. BOIE | 2008-03-21 13:12:49 |
Replaced umbrella with embedromix. | 6b6671cce7f0a2c98ac27705ad638c4e1bc52213 | Catalin(ux) M. BOIE | 2007-10-03 21:56:40 |
Incremented revision. | e79bace79bb15f59133841a144ef1ff04e516cd5 | Catalin(ux) M. BOIE | 2007-10-03 21:55:25 |
Changed changelog. | 00c9dba4e97d924299fd992ff8f4e20fce5c770e | Catalin(ux) M. BOIE | 2007-10-03 20:43:21 |
First import. | 5ad0e7b8aa527aaebab52c53b45c36257fce5d0a | Catalin(ux) M. BOIE | 2007-10-03 20:20:26 |
File | Lines added | Lines deleted |
---|---|---|
Conn.c | 16 | 0 |
Conn.h | 1 | 0 |
File Conn.c changed (mode: 100644) (index 3101607..4fd125b) | |||
... | ... | int Conn_set_cb(struct Conn *C, unsigned int type, void (*f)(struct Conn *)) | |
1809 | 1809 | ||
1810 | 1810 | return 0; | return 0; |
1811 | 1811 | } | } |
1812 | |||
1813 | /* | ||
1814 | * Returns a '\0' terminated line, modifying received buffer | ||
1815 | */ | ||
1816 | char *Conn_get_line(struct Conn *C) | ||
1817 | { | ||
1818 | char *cr; | ||
1819 | |||
1820 | cr = Conn_strstr(C, "\n"); | ||
1821 | if (!cr) | ||
1822 | return NULL; | ||
1823 | |||
1824 | *cr = '\0'; | ||
1825 | |||
1826 | return Conn_ibuf(C); | ||
1827 | } |
File Conn.h changed (mode: 100644) (index e2302f4..5cfc105) | |||
... | ... | extern int Conn_get_fd(struct Conn *C); | |
218 | 218 | extern void Conn_last_time(struct Conn *C, struct timeval *tv); | extern void Conn_last_time(struct Conn *C, struct timeval *tv); |
219 | 219 | extern int Conn_set_cb(struct Conn *C, unsigned int type, | extern int Conn_set_cb(struct Conn *C, unsigned int type, |
220 | 220 | void (*f)(struct Conn *)); | void (*f)(struct Conn *)); |
221 | extern char *Conn_get_line(struct Conn *C); | ||
221 | 222 | ||
222 | 223 | #endif | #endif |