/programs/develop/libraries/menuetlibc/src/libc/ansi/stdio/fsetpos.c |
---|
0,0 → 1,15 |
/* Copyright (C) 1994 DJ Delorie, see COPYING.DJ for details */ |
#include <stdio.h> |
#include <errno.h> |
int |
fsetpos(FILE *stream, const fpos_t *pos) |
{ |
if (stream && pos) |
{ |
fseek(stream, (long)(*pos), SEEK_SET); |
return 0; |
} |
errno = EFAULT; |
return 1; |
} |