commit 270bbcf6650f5b13990b38f9c97a04f5c26dabf1 parent 5cdbead14cf620652bdac1eec11451db463b564b Author: MichaelDim02 <31562759+MichaelDim02@users.noreply.github.com> Date: Fri, 25 Dec 2020 16:32:40 +0000 Update upp.c Diffstat:
M | src/upp.c | | | 8 | +++++--- |
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/src/upp.c b/src/upp.c @@ -5,17 +5,19 @@ bool hasUpper(char ch[600]); -bool hasUpper(char ch[600]) { +bool +hasUpper(char ch[600]) { bool hup = false; int len = strlen(ch); + int i; - for (int i=0; i<len; i++) { + for (i=0; i<len; i++) { if (ch[i] >= 'A' && ch[i] <= 'Z') { hup = true; break; - } //else if (ch[i] >= 'a' && ch[i] <= 'z') { + } /*else if (ch[i] >= 'a' && ch[i] <= 'z') {*/ } return hup; }