You are using this type incorrectly. Firstly, it is not length. This is the position. Secondly, it is intended only for calling fsetpos . You do not have to do arithmetic because it does not necessarily mean a numeric type. It contains any information your library needs to perform the fsetpos operation. In your library implementation, fpos_t is represented as an aggregate type, for example, struct. (You can check the definition in the header files, but do not rely on what you find there, it may differ on other platforms or in future versions of the standard library.)
As for your next step, consider asking a more direct question about how to solve any problem you were working on when the idea arose of performing bitwise operations on fpos_t .
source share