Skip to content

Commit

Permalink
feat: add nonul_byte()
Browse files Browse the repository at this point in the history
  • Loading branch information
unknowndevQwQ committed Feb 10, 2024
1 parent 9282aa6 commit c8b1eb8
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,12 @@ impl KillMyArgv {
self.max_len
}

/// origin argv length, containing the terminating NUL byte.
/// This bit is written to a non-nul value requiring attention to os behavior.
pub fn nonul_byte(&self) -> Option<usize> {
self.nonul_byte
}

/// Undo the args/cmdline changes.
pub fn revert(&self) {
let backup_chars: Vec<u8> = self
Expand Down

0 comments on commit c8b1eb8

Please sign in to comment.