"range of" in if condition C programming

Posted by Samantha on Stack Overflow See other posts from Stack Overflow or by Samantha
Published on 2010-03-08T23:28:57Z Indexed on 2010/03/09 0:06 UTC
Read the original article Hit count: 315

Filed under:
|
|

Hello,

I'm working on a simple C prorgam, and i'ms tuck with an if test:

int line_number = 0;
if ((line_number >= argv[2]) && (line_number <= argv[4]) ) 

gcc says: cp.c:25: warning: comparison between pointer and integer cp.c:25: warning: comparison between pointer and integer

What can I do to properly write the range of line I want to deal with ?

Thank you!

© Stack Overflow or respective owner

Related posts about c

    Related posts about if