Rust in the 6.2 kernel
Rust in the 6.2 kernel
Posted Nov 18, 2022 3:18 UTC (Fri) by droundy (guest, #4559)In reply to: Rust in the 6.2 kernel by tialaramex
Parent article: Rust in the 6.2 kernel
Actually &CStr differs from &str in that it is *not* a slice and doesn't hold a length asking with an address. So while I do prefer the standard &str, &CStr does have the advantage of taking up half as much space.
