News for hackers. Stuff that matters.
Re:Modern C++ for C Programmers (2018) by clappski on Saturday July 24, 2021 @04:44AM (#27939304)
C++ has a great array story - `std::array<char, N>`. `fopen` is a C API, so yeah you have to pass it C-strings. Note that Rust has to do the exact same thing (albeit calling `open64` rather than `fopen`), you can see it in the source for the stdlib here https://github.com/rust-lang/rust/blob/master/library/std/sr...

There are no comments on this comment yet.