143 * |
143 * |
144 * The new position is relative to the <code>whence</code> argument. |
144 * The new position is relative to the <code>whence</code> argument. |
145 * |
145 * |
146 * SEEK_SET marks the start of the buffer. |
146 * SEEK_SET marks the start of the buffer. |
147 * SEEK_CUR marks the current position. |
147 * SEEK_CUR marks the current position. |
148 * SEEK_END marks the first 0-byte in the buffer. |
148 * SEEK_END marks the end of the buffer. |
|
149 * |
|
150 * With an offset of zero, this function sets the buffer position to zero |
|
151 * (SEEK_SET), the buffer size (SEEK_END) or leaves the buffer position |
|
152 * unchanged (SEEK_CUR). |
149 * |
153 * |
150 * @param buffer |
154 * @param buffer |
151 * @param offset position offset relative to <code>whence</code> |
155 * @param offset position offset relative to <code>whence</code> |
152 * @param whence one of SEEK_SET, SEEK_CUR or SEEK_END |
156 * @param whence one of SEEK_SET, SEEK_CUR or SEEK_END |
153 * @return 0 on success, non-zero if the position is invalid |
157 * @return 0 on success, non-zero if the position is invalid |