Hi Everyone,

I have a question, what does lseek do? and how can i replace the following code in C++.

void avi_start(int fd)
{
int ofs = sizeof(struct riff_head)+
sizeof(struct list_head)+
sizeof(struct avi_head)+
sizeof(struct list_head)+
sizeof(struct stream_head)+
sizeof(struct frame_head)+
sizeof(struct list_head);

lseek(fd, ofs, SEEK_SET);

nframes = 0;
totalsize = 0;
}


Thanks
Pratik