Hello all,
I am truely a beginner to C programming but have written alot of shell code and perl. I am trying to write a small bit of code in C that will do the following:
Take input from command line such as 192.168.10 and create a file with all the available addresses in that space.. in other words print 192.168.10.1 through 255 into a file. I have started the code but I am not sure I am on the right track.. can someone comment on this:
#include <stdio.h>
#define START 1
#define END 255
#define STEP 1
main()
{
double addr;
addr = getchar();
range = "addr.START";
printf("range"\n);
I think this exercise will better help me understand the context of C and move forward with programming..
ANy help?