WCM Forum

WCM Forum (http://www.wcm.at/forum/index.php)
-   Programmierung (http://www.wcm.at/forum/forumdisplay.php?f=17)
-   -   kurze C frage - dateizugriff fseek, rewind (http://www.wcm.at/forum/showthread.php?t=147304)

CISK 12.10.2004 14:39

kurze C frage - dateizugriff fseek, rewind
 
ganz dumme frage

bewirke ich mit


rewind(datei);
und
fseek(datei,0L,SEEK_SET);

eh das gleiche oder??

käptn 12.10.2004 15:28

$ man 3 fseek

Code:

      The  rewind  function  sets  the file position indicator for the stream
      pointed to by stream to the beginning of the file.  It  is  equivalent
      to:

              (void)fseek(stream, 0L, SEEK_SET)

      except  that  the  error  indicator for the stream is also cleared (see
      clearerr(3)).

~

CISK 12.10.2004 15:32

ha danke


Alle Zeitangaben in WEZ +2. Es ist jetzt 21:11 Uhr.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
© 2009 FSL Verlag