mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 08:36:24 +08:00
Add fseek()
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@613 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
@@ -93,6 +93,7 @@ static ssize_t hello_read(struct file *filp, char *buffer, size_t len)
|
||||
nread = hello_pex_len - offset;
|
||||
}
|
||||
memcpy(buffer, &hello_pex[offset], nread);
|
||||
filep->f_pos += nread;
|
||||
}
|
||||
return nread;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user