Jeremy Soller
c647fdfed3
Merge pull request #116 from matijaskala/patch-1
...
Add optimized version of memchr
2018-05-15 18:33:31 -06:00
Matija Skala
9bbb070104
Add optimized version of memchr
2018-05-15 21:06:17 +02:00
Alex Lyon
0cabecd5b5
stdio, string, platform: fix a bug in printf() involving chars
...
Because we were previously converting the bytes in the format
string into Rust's char type and then printing that using the
format machinery, byte values that were not valid single-byte
UTF-8 characters failed to print correctly. I found this while
trying to implement qsort() because the output of my test program
was mysteriously incorrect despite it working when I used glibc.
2018-05-11 23:09:12 -07:00
Hermann Döppes
dc769fd977
Run ./fmt.sh
2018-04-04 22:52:06 +02:00
Jeremy Soller
dabd8dc6a2
Move memory handling into string, do not use compiler_builtins for memory handling
2018-03-27 21:28:48 -06:00
Jeremy Soller
afdc80629f
Fix Makefile spurious rebuilds
...
Add mem* functions to stdio
Add constant int functions
2018-03-27 20:14:22 -06:00
Timothy Bess
3a89f66cfd
* simplify strtok implementation
2018-03-18 00:05:13 -04:00
Timothy Bess
06de920be6
* remove unnecessary assignments
2018-03-17 12:58:10 -04:00
Timothy Bess
e91891625f
* add strtok_r
2018-03-17 03:56:40 -04:00
Timothy Bess
898cf98ccc
* fix test case a bit
...
* remove unnecessary cast
2018-03-17 03:06:59 -04:00
Timothy Bess
f60fafe8fb
* create basic strtok
...
* add test and expected output
2018-03-17 02:58:08 -04:00
Timothy Bess
bebbd35e1a
Issue #89
...
* fix return types
* fix type casts on returns
2018-03-17 00:50:22 -04:00
Andrii Zymohliad
cd2312fd56
Merge remote-tracking branch 'upstream/master'
2018-03-14 09:55:59 +08:00
Tom Almeida
d058390b75
The erroneous use came back!
2018-03-14 08:56:18 +08:00
Tom Almeida
122f6cfef5
Merge branch 'master' of github.com:Tommoa/relibc
2018-03-14 08:54:10 +08:00
Tom Almeida
9d46fa4d8c
Missed having both loops look at themselves. I'm not sure how long this has been here.
2018-03-14 08:48:56 +08:00
Andrii Zymohliad
40efea056b
Reimplement strpbrk() using strcspn()
2018-03-14 08:06:51 +08:00
Tom Almeida
ca82b6df5b
remove erroneous import in string
2018-03-14 01:03:48 +08:00
Tom Almeida
d6a7942ec4
Change the type of byteset from [u8] to [usize] in strcspn and strspn. Hopefully this is the last bug in these!
2018-03-14 01:01:23 +08:00
Andrii Zymohliad
1e969afd43
Implement strpbrk(), add strpbrk test
2018-03-12 18:01:12 +08:00
Andrii Zymohliad
a1de0ef8a1
Implement strstr(), add strstr test
2018-03-12 14:55:02 +08:00
Tom Almeida
1f9f9f7d55
Made an error in the logic of strcspn and strspn that would cause a bit shift much too large
2018-03-11 23:53:15 +08:00
Justin Raymond
63ee4de162
Update lib.rs
2018-03-10 12:39:30 -05:00
Justin Raymond
a1e62baad7
Merge branch 'master' into strrchr
2018-03-10 11:11:46 -05:00
Justin Raymond
826cf0c61c
implement strrchr
2018-03-10 11:10:19 -05:00
Tom Almeida
d0bf830ca7
fixed a logic error in strchr
2018-03-10 23:09:10 +08:00
Tom Almeida
b0f8e31b63
ran fmt.sh
2018-03-10 23:01:49 +08:00
Tom Almeida
87ec6dfacb
Fixed unused variable in memchr
2018-03-10 22:59:24 +08:00
Tom Almeida
18283feac1
Added implementations of strchr, strcspn and strspn
2018-03-10 22:58:35 +08:00
Jeremy Soller
b52a1d612d
Merge pull request #59 from Tommoa/master
...
Add implementations of memchr and memccpy
2018-03-10 07:03:40 -07:00
Tom Almeida
d214817c87
readability update in lib.rs
2018-03-10 21:52:06 +08:00
Tom Almeida
774856f9b2
Update lib.rs
2018-03-10 21:37:01 +08:00
Tom Almeida
3470882df6
Fixed incorrect return of memccpy
2018-03-10 17:12:05 +08:00
Tom Almeida
4f601f4896
Added memchr and memccpy to string
2018-03-10 16:59:53 +08:00
Alex Lyon
cfc1014c6e
string: fix a couple minor issues in strncmp()
2018-03-09 20:54:42 -08:00
Alex Lyon
50f79e9a0e
string: address performance concerns for strncmp()
2018-03-09 20:54:42 -08:00
Alex Lyon
332ae13af5
string: fix out of bounds bug in strncmp
2018-03-08 17:18:38 -08:00
Jeremy Soller
b7b49d5801
Implement strerror
2018-03-07 21:00:26 -07:00
Alex Lyon
629c20f097
string: ensure resulting string has NUL byte
2018-03-07 17:52:37 -08:00
Alex Lyon
3e1b945e99
Add errno crate and set errno in strndup
2018-03-07 17:38:43 -08:00
Alex Lyon
ee824f3b19
string: implement strndup and strnlen
2018-03-07 15:59:58 -08:00
Alex Lyon
9f39456dbd
string: implement strcat, strcmp, strcpy, and strdup
2018-03-07 14:06:30 -08:00
Alex Lyon
114ee16c21
string: implement strncat, strncmp, and strncpy
2018-03-07 05:04:40 -08:00
Jeremy Soller
543526cb85
Move crt0 and platform into src folder
...
Add cargo fmt script
2018-03-06 19:55:11 -07:00
Dan Robertson
846e495944
Get rustfmt passing on core relibc code
...
- Add a rustfmt config
- Get the current code passing the formatter
2018-03-07 01:52:50 +00:00
Jeremy Soller
866d952924
Support building for Redox
2018-03-04 08:10:42 -07:00
Jeremy Soller
083fd72e66
Reorganize
2018-03-03 20:24:40 -07:00