About 5,210,000 results
Open links in new tab
  1. c - What does fseek do? - Stack Overflow

    Feb 11, 2021 · After a successful fseek call, the next operation on an update stream may be either input or output. Returns: 6 The fseek function returns nonzero only for a request that …

  2. fseek() on text files in C language - Stack Overflow

    Oct 21, 2021 · A binary stream need not meaningfully support fseek calls with a whence value of SEEK_END. For a text stream, either offset shall be zero, or offset shall be a value returned …

  3. file - Understanding fseek () in C - Stack Overflow

    Feb 19, 2023 · Also, remove the fseek when creating the file, as mentioned, fwrite definitely advances the file offset after writing data (provided fwrite does write data at all).

  4. what's the difference between `fseek`, `lseek`, `seekg`, `seekp`?

    Feb 19, 2012 · Use fseek when using the C stdio library. Use lseek when using low-level POSIX file descriptor I/O. The difference between the various seek functions is just the kind of …

  5. c - behaviour of fseek and SEEK_END - Stack Overflow

    Dec 18, 2014 · The man page from fseek() is a bit ambiguous about this issue, but compare with the man lseek that contains the same issue: If whence is SEEK_END, the file offset shall be …

  6. What is the use of zero offset in fseek () function with SEEK_CUR?

    May 14, 2023 · The OP's reported behaviour of looping when the second fseek () is omitted is consistent with his runtime having separate read and write pointers which are synchronised by …

  7. c++ - Utilización de la función fseek - Stack Overflow en español

    3 La función std::fseek forma parte de las librerías del lenguaje C portadas a C++, está incluida en la cabecera <cstdio> que es el equivalente C++ de <stdio>, la cabecera de Entrada/Salida …

  8. c - How to fseek () on a pipe - Stack Overflow

    How to fseek () on a pipe Asked 12 years, 3 months ago Modified 9 years, 4 months ago Viewed 5k times

  9. How can I get a file's size in C? - Stack Overflow

    How can I find out the size of a file I opened with an application written in C? I would like to know the size because I want to put the content of the loaded file into a string, which I allocate u...

  10. what is difference between fgetpos/fsetpos and ftell/fseek

    May 10, 2018 · But get this: ONLY fseek () allows you to seek from the beginning of the file, from your current position in the file, and backwards from the end of the file (the third argument to …