benshi001 wrote:

`fileno` and `ftell` are quite similar, 

1. both of them return `0` on success, and `-1` on failure. 
2. both of them set `errno` on failure.

The differences are
1. `fileno` returns `int` type but `ftell` returns `long` type.
2. `ftell` will not affect the value of `error` on success, but this is not 
mentioned for `fileno`.

https://github.com/llvm/llvm-project/pull/76207
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to