|
|
|
|
|
by oecumena
689 days ago
|
|
Sizes of stdio FILE streams are still limited, because of ftell: the standard requires that file position (as measured from the beginning of the file) is representable as long or off_t. You can advance an argument that even though each stream is limited, you can have an infinite number of streams, but this does not work, because stream name is a string, and there is only finite number of possible strings and the standard library does not contain chdir(). |
|
So ftell() can exist but fail for unbounded seekable streams. The standard does not require ftell() to provide an answer in all situations.