Skip to content

exec family functions take CString instead of &CStr #1093

@canndrew

Description

@canndrew

For example, the signature of execve is:

pub fn execve(path: &CString, args: &[CString], env: &[CString]) -> Result<Void>

Surely there's no point in taking a &CString as opposed to a &CStr, right? And couldn't the slices just contain &CStrs since it's not possible to move out of a slice anyway?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions