mirror of
https://github.com/nasa/trick.git
synced 2025-01-18 10:46:26 +00:00
move strlen statement
This commit is contained in:
parent
3c7a93c3ca
commit
d16064aaf0
@ -53,6 +53,7 @@ void funcsub(char *str)
|
||||
printf("\n%s", equation);
|
||||
#endif
|
||||
comp = 0;
|
||||
len = strlen(equation);
|
||||
for (test = 0; test < (len - 1); test++) {
|
||||
if ((isalpha(equation[test])) &&
|
||||
((isalpha(equation[test + 1]))
|
||||
@ -64,7 +65,6 @@ void funcsub(char *str)
|
||||
while (comp == 1) {
|
||||
start = 0;
|
||||
comp = 0;
|
||||
len = strlen(equation);
|
||||
i = 0;
|
||||
while (i == 0) {
|
||||
if ((isalpha(equation[start])) &&
|
||||
|
Loading…
Reference in New Issue
Block a user