fseek man page on Xenix

Man page or keyword search:  
man Server   1130 pages
apropos Keyword Search (all sections)
Output format
Xenix logo
[printable version]



     FSEEK(S)		      XENIX System V		      FSEEK(S)

     Name
	  fseek, ftell, rewind - Repositions a file pointer in a
	  stream.

     Syntax
	  #include <stdio.h>

	  int fseek (stream, offset, ptrname)
	  FILE *stream;
	  long offset;
	  int ptrname;

	  long ftell (stream)
	  FILE *stream;

	  void rewind(stream)
	  FILE *stream;

     Description
	  fseek sets the position of the next input or output
	  operation on the stream.  The new position is at the signed
	  distance offset bytes from the beginning, the current
	  position, or the end of the file, according as ptrname has
	  the value 0, 1, or 2.

	  fseek undoes any effects of ungetc(S).

	  After fseek or rewind, the next operation on an update file
	  may be either input or output.

	  ftell returns the current value of the offset relative to
	  the beginning of the file associated with the named stream.
	  The offset is measured in bytes.

	  rewind(stream) is equivalent to fseek(stream, 0L, 0), except
	  that no value is returned.

     See Also
	  lseek(S), fopen(S), popen(S), ungetc(S)

     Diagnostics
	  fseek returns nonzero for improper seeks, otherwise zero.

     Page 1					      (printed 8/7/87)

[top]
                             _         _         _ 
                            | |       | |       | |     
                            | |       | |       | |     
                         __ | | __ __ | | __ __ | | __  
                         \ \| |/ / \ \| |/ / \ \| |/ /  
                          \ \ / /   \ \ / /   \ \ / /   
                           \   /     \   /     \   /    
                            \_/       \_/       \_/ 
More information is available in HTML format for server Xenix

List of man pages available for Xenix

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net