File: seek_set.c

package info (click to toggle)
freecdb 0.78.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 728 kB
  • sloc: ansic: 1,733; sh: 360; makefile: 25
file content (9 lines) | stat: -rw-r--r-- 186 bytes parent folder | download | duplicates (28)
1
2
3
4
5
6
7
8
9
/* Public domain. */

#include <sys/types.h>
#include "seek.h"

#define SET 0 /* sigh */

int seek_set(int fd,seek_pos pos)
{ if (lseek(fd,(off_t) pos,SET) == -1) return -1; return 0; }