Remove length function from c/isograrm

This commit is contained in:
dwrz
2019-02-26 13:22:43 +00:00
parent 759b358035
commit fe464969b8
-6
View File
@@ -1,12 +1,6 @@
#include <stdbool.h>
#include <stdio.h>
int length(const char string[]) {
int i = 0;
while (string[i] != '\0') { i++; }
return i;
}
char lowercase(char c) {
// Lowercase only ASCII uppercase chars.
if (c >= 65 && c <= 90) { return c + 32; }