Move scanf unit tests to normal C tests

This commit is contained in:
jD91mZM2
2018-08-05 09:53:07 +02:00
parent 442a7bbedc
commit b5adee798d
4 changed files with 48 additions and 190 deletions
+3 -5
View File
@@ -235,11 +235,9 @@ pub unsafe extern "C" fn execve(
}
let mut len = 0;
for i in 0.. {
if (*argv.offset(i)).is_null() {
len = i;
break;
}
while !(*argv.offset(len)).is_null() {
len += 1;
break;
}
let mut args: Vec<[usize; 2]> = Vec::with_capacity(len as usize);