Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

fsetpos(3)

fseek(3)



  fsetpos(3)                          CLIX                          fsetpos(3)



  NAME

    fsetpos - Repositions a file pointer in a stream

  LIBRARY

    Standard C Library (libc.a)

  SYNOPSIS

    #include <stdio.h>

    int fsetpos(
      FILE *stream ,
      const fpos_t *pos );

  PARAMETERS

    stream   Points to a file.

    pos      Specifies the desired location in number of bytes from the
             beginning of the file.

  DESCRIPTION

    The fsetpos() function is a wrapper around the fseek() function.

  EXAMPLES

    This example sets the position of the file pointed to by fp to 1024 bytes
    from the beginning.

    FILE *fp;
    fpos_t pos;

    pos=1024;

    if (fsetpos(fp, pos))
    {
        perror("fsetpos failed");
        exit(-1);
    }


  RETURN VALUES

    The return value for fsetpos() is that value returned by fseek(stream,
    *pos, 0).

  RELATED INFORMATION




  2/94 - Intergraph Corporation                                              1






  fsetpos(3)                          CLIX                          fsetpos(3)



    Functions:  fseek(3)





















































  2                                              Intergraph Corporation - 2/94




Typewritten Software • bear@typewritten.org • Edmonds, WA 98026