Apply toupper() to every character of the sds string 's'. */
| 773 | |
| 774 | /* Apply toupper() to every character of the sds string 's'. */ |
| 775 | void sdstoupper(sds s) { |
| 776 | size_t len = sdslen(s), j; |
| 777 | |
| 778 | for (j = 0; j < len; j++) s[j] = toupper(s[j]); |
| 779 | } |
| 780 | |
| 781 | /* Compare two sds strings s1 and s2 with memcmp(). |
| 782 | * |