Apply tolower() to every character of the sds string 's'. */
| 766 | |
| 767 | /* Apply tolower() to every character of the sds string 's'. */ |
| 768 | void sdstolower(sds s) { |
| 769 | size_t len = sdslen(s), j; |
| 770 | |
| 771 | for (j = 0; j < len; j++) s[j] = tolower(s[j]); |
| 772 | } |
| 773 | |
| 774 | /* Apply toupper() to every character of the sds string 's'. */ |
| 775 | void sdstoupper(sds s) { |