format
This commit is contained in:
@@ -180,7 +180,6 @@ pub unsafe fn inner_scanf<T: Kind>(
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
let pointer = c == 'p';
|
||||
// Pointers aren't automatic, but we do want to parse "0x"
|
||||
let auto = c == 'i' || pointer;
|
||||
@@ -192,7 +191,6 @@ pub unsafe fn inner_scanf<T: Kind>(
|
||||
_ => 10,
|
||||
};
|
||||
|
||||
|
||||
let mut n = String::new();
|
||||
let mut dot = false;
|
||||
|
||||
|
||||
@@ -100,14 +100,3 @@ int main ()
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
/*
|
||||
wchar_t world[6];
|
||||
int value;
|
||||
int ret = swscanf(L"hello world 42", L"hello %5ls %d", world, &value);
|
||||
// int ret = swscanf(L"42", L"%d", &value);
|
||||
|
||||
// wprintf(L"swscanf gave '%ls' instead of '%ls'", world, L"world");
|
||||
printf("swscanf gave '%d' instead of %d", value, 42);
|
||||
printf("ret %d\n", ret);
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user