mirror of
https://github.com/lcn2/calc.git
synced 2025-08-16 01:03:29 +03:00
Release calc version 2.10.2t30
This commit is contained in:
33
help/rewind
Normal file
33
help/rewind
Normal file
@@ -0,0 +1,33 @@
|
||||
NAME
|
||||
rewind - set position at the beginning of some or all files
|
||||
|
||||
SYNOPSIS
|
||||
rewind([f_1, f_2, ...])
|
||||
|
||||
TYPES
|
||||
f_1, f_2, ... open file streams
|
||||
|
||||
return null value or error
|
||||
|
||||
DESCRIPTION
|
||||
With one or more arguments f_1, ..., this function sets the
|
||||
position for each f_i at the beginning. With no argument,
|
||||
this operation is applied to all user-opened files.
|
||||
|
||||
EXAMPLE
|
||||
> f = fopen("curds","r");
|
||||
> x = fgetc(f);
|
||||
> rewind(f);
|
||||
> y = fgetc(f);
|
||||
> print x == y
|
||||
1
|
||||
|
||||
LIMITS
|
||||
none - XXX - is this correct?
|
||||
|
||||
LIBRARY
|
||||
none - XXX - is this correct?
|
||||
|
||||
SEE ALSO
|
||||
errno, fclose, feof, ferror, fflush, fgetc, fgetline, fgets, files, fopen,
|
||||
fprintf, fputc, fputs, fseek, fsize, ftell, isfile, printf, prompt
|
Reference in New Issue
Block a user