Subversion Repositories Kolibri OS

Rev

Go to most recent revision | Blame | Last modification | View Log | Download | RSS feed

  1. /* Copyright (C) 1994 DJ Delorie, see COPYING.DJ for details */
  2. #include <stdio.h>
  3. #include <errno.h>
  4.  
  5. int fgetpos(FILE *stream, fpos_t *pos)
  6. {
  7.  if (stream && pos)
  8.  {
  9.   *pos = (fpos_t)ftell(stream);
  10.   return 0;
  11.  }
  12.  errno = EFAULT;
  13.  return 1;
  14. }
  15.