Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
system() function in C
Name: tetsugin Date: July 22, 2003 at 20:56:28 Pacific OS: winxp sp1 CPU/Ram: duron 892mhz/386 pc133
Comment:
hi, im trying to write a program that would run a system command using the system() function. My problem occurs in that the system() function appearently only accepts literal strings, how would i pass a variable into it. For instance run system("nbtstat -A a.b.c.d") where a, b, c, and d would be variables running in nested for loops. I was thinking maybe there was a way to store an int inside a char or combine an int and char into a literal string? thanks for your time
Summary: Please help.I have to write a function in C language. Here it is.Function must return integer number in which bits from position m to position n are set to 1. For example input number is 17,and bits o...