comparison internal.h @ 6302:869753e625c4 libavformat

document ff_get_line()
author aurel
date Wed, 21 Jul 2010 21:40:50 +0000
parents 1b2b5dbcf549
children 3f938b3a355a
comparison
equal deleted inserted replaced
6301:1b2b5dbcf549 6302:869753e625c4
165 /** 165 /**
166 * Put val using a variable number of bytes. 166 * Put val using a variable number of bytes.
167 */ 167 */
168 void ff_put_v(ByteIOContext *bc, uint64_t val); 168 void ff_put_v(ByteIOContext *bc, uint64_t val);
169 169
170 /**
171 * Read a whole line of text from ByteIOContext. Stop reading after reaching
172 * either a \n, a \0 or EOF. The returned string is always \0 terminated,
173 * and may be truncated if the buffer is too small.
174 *
175 * @param s the read-only ByteIOContext
176 * @param buf buffer to store the read line
177 * @param maxlen size of the buffer
178 * @return the length of the string written in the buffer, not including the
179 * final \0
180 */
170 int ff_get_line(ByteIOContext *s, char *buf, int maxlen); 181 int ff_get_line(ByteIOContext *s, char *buf, int maxlen);
171 182
172 #define SPACE_CHARS " \t\r\n" 183 #define SPACE_CHARS " \t\r\n"
173 184
174 #endif /* AVFORMAT_INTERNAL_H */ 185 #endif /* AVFORMAT_INTERNAL_H */