I am currently trying to test and debug so that I can implement some C code that another person wrote 3 years ago. The code is not very well written but I am trying . . . my problem for today is a while loop. here is syntax
while(strlen(prodtag))
{...
}
[the variable is populated with a string]
Written like this the while loop never gets entered.
I added an ==0) to say if it is true come on in, and now the loop is infinite. I have tried several ways to increment or decrement prodtag so that once I get the first entrance the code will move on. I get lvalue errors when I try to add a
prodtag++ or prodtag-- [i'd prefer prodtag--]
[I'm working on a unix platform].
Thanks for any help you can provide.
Have a great day!
Vicky