summaryrefslogtreecommitdiff
path: root/seek_end.c
blob: 8a7b3c5401cbb4bf1202b51fc70940f441672240 (plain)
1
2
3
4
5
6
7
#include <sys/types.h>
#include "seek.h"

#define END 2 /* sigh */

int seek_end(fd) int fd;
{ if (lseek(fd,(off_t) 0,END) == -1) return -1; return 0; }