fn create_whitespace_cstring(len: usize) -> Result<CString, GlError> {
    let mut buffer: Vec<u8> = Vec::with_capacity(len + 1);
    buffer.extend([b' '].iter().cycle().take(len));
    CString::new(buffer).map_err(|_| GlError::ErrorBuffer)
}
/// Create a space filled CString of given length
Create a space filled CString of given length
Create a space filled CString of given length
fn create_whitespace_cstring(len: usize) -> Result<CString, GlError> {
    let mut buffer: Vec<u8> = Vec::with_capacity(len + 1);
    buffer.extend([b' '].iter().cycle().take(len));
    CString::new(buffer).map_err(|_| GlError::ErrorBuffer)
}
fn create_whitespace_cstring ( len : usize ) -> Result < CString , GlError > { let mut buffer : Vec < u8 > = Vec :: with_capacity ( len + 1 ) ; buffer . extend ( [ b' ' ] . iter ( ) . cycle ( ) . take ( len ) ) ; CString :: new ( buffer ) . map_err ( | _ | GlError :: ErrorBuffer ) }
Create a space filled CString of given length
Create a space filled CString of given length
len
usize
len
usize