Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
fopenCの「モード」パラメータが文字列で指定されるのはなぜですか? ビットマスクなどである方が(私の考え方では)理にかなっています。文字列が必要とするオーバーヘッドは非効率的で不必要です。
fopen
それがビットマスクであった場合、将来の拡張はより制限されていたでしょう。GNU C ライブラリは、既に 10 の異なるモードと MSVC 15 を許可しています。さらに,ccs=string、ビットマスクでは不可能な構文をサポートしています。
,ccs=string