summaryrefslogtreecommitdiff
path: root/src/libstddjb/seek_cur.c
blob: cdfdac7a526f84d89b49fed86b3f3255b0c17e60 (plain)
1
2
3
4
5
6
7
8
9
10
/* ISC license. */

#include <sys/types.h>
#include <unistd.h>
#include <skalibs/djbunix.h>

long seek_cur (int fd)
{
  return (long)lseek(fd, 0, SEEK_CUR) ;
}