Skip to content
Snippets Groups Projects
Commit 7cec5d20 authored by h2-addad's avatar h2-addad
Browse files

Update

parent 3f474de4
No related branches found
No related tags found
No related merge requests found
#include <syscall.h>
#include <stdio.h>
int main(void) {
int fd = 0; // Assume file descriptor 0 represents stdin
unsigned position = tell(fd);
printf("Current position of file pointer for fd %d: %u\n", fd, position);
return 0;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment