Skip to content
Snippets Groups Projects
Commit 8d05067a authored by Nagy Tibor's avatar Nagy Tibor
Browse files

ctype: fix isspace to test all space class characters

parent 35bcf931
No related branches found
No related tags found
1 merge request!182ctype: fix isspace to test all space class characters
......@@ -54,7 +54,12 @@ pub extern "C" fn ispunct(c: c_int) -> c_int {
#[no_mangle]
pub extern "C" fn isspace(c: c_int) -> c_int {
(c == 0x20) as c_int
(c == ' ' as c_int
|| c == '\t' as c_int
|| c == '\n' as c_int
|| c == '\r' as c_int
|| c == 0x0b
|| c == 0x0c) as c_int
}
#[no_mangle]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment