range of line numbers in if condition C programming
Posted
by nour
on Stack Overflow
See other posts from Stack Overflow
or by nour
Published on 2010-03-08T23:28:57Z
Indexed on
2010/03/08
23:36 UTC
Read the original article
Hit count: 423
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