Timeline for Converting a string to lower-case (without built-in to-lower functions!)
Current License: CC BY-SA 3.0
14 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jul 27, 2023 at 23:53 | comment | added | c-- |
53 bytes, also fixed a bug with [ being translated to {
|
|
Oct 10, 2013 at 7:16 | history | edited | Rozuur | CC BY-SA 3.0 |
edited body
|
Oct 9, 2013 at 16:03 | comment | added | manatwork | Insignificantly small bug: seems there should be 65 instead of 64. pastebin.com/Zc9zMx2W | |
Oct 8, 2013 at 11:36 | comment | added | ugoren |
You can save one more by c=~getchar() . It will require some work on your putchar though.
|
|
Oct 8, 2013 at 11:28 | history | edited | ugoren | CC BY-SA 3.0 |
Correct character count
|
Oct 8, 2013 at 9:13 | comment | added | Rozuur | Thats great, have incorporated your suggestions. Thanks | |
Oct 8, 2013 at 9:12 | history | edited | Rozuur | CC BY-SA 3.0 |
deleted 6 characters in body
|
Oct 8, 2013 at 8:28 | comment | added | ugoren |
1. ~(c=getchar()) 2. c-64u<27
|
|
Oct 7, 2013 at 21:20 | comment | added | Rozuur | we need c>=0 as getchar(EOF) will be < 0. Thanks for other suggestion. | |
Oct 7, 2013 at 21:18 | history | edited | Rozuur | CC BY-SA 3.0 |
deleted 1 characters in body
|
Oct 7, 2013 at 18:00 | comment | added | JoeFish |
You can lose 9 characters: drop int and ,c>=0 . They're not necessary here.
|
|
Oct 7, 2013 at 9:34 | history | edited | Rozuur | CC BY-SA 3.0 |
added 18 characters in body
|
Oct 7, 2013 at 9:26 | comment | added | manatwork | I count only 63 characters there. | |
Oct 7, 2013 at 9:15 | history | answered | Rozuur | CC BY-SA 3.0 |