sunfishcode / c-ward

An implementation of libc written in Rust
Other
187 stars 11 forks source link

add strverscmp #99

Closed KGrewal1 closed 8 months ago

KGrewal1 commented 8 months ago

This is a step towards a complete strverscmp: I was unsure how to use the libc macro so that still needs to be done, and stylistically seems quite different from some of the other code with more enums to try to match the C impl here https://codebrowser.dev/glibc/glibc/string/strverscmp.c.html#26 . Have not added any tests yet either . This was for issue https://github.com/sunfishcode/eyra/issues/34 in eyra