I use the following to work with arguments in my programs, but it seems to just hand me a warning (just a warning): "warning: suggest parentheses around assignment used as truth value"
The beginning of the code is as follows:
while((++argv)[0] && argv[0][0]=='-'){
while(c =* ++argv[0])
The while(c =* ++argv[0])
part being where the warning persists. The code works fine, but what does this warning mean opposed to what is used?
I think the code is c = *++argv[0]
, using the pointer. So why does the single =
work and what is really recommended to be used?