Ok, apologies. I edited down the code to only the relevant pieces in an editor I don't normally use. I'll make sure it doesn't happen in the future.
Thanks for fixing it. :-)
Type: Posts; User: theitsmith
Ok, apologies. I edited down the code to only the relevant pieces in an editor I don't normally use. I'll make sure it doesn't happen in the future.
Thanks for fixing it. :-)
I am writing a small test application that will determine what one's IP address is on a given subnet. I'm passing the address of a pointer from main() to getCompIPAddr(). I know that the pointer is...
Thanks, this worked!
#include <stdio.h>
#include <stdlib.h>
void testVars(char *a, char** b);
int main()
Hi,
I'm trying to pass a variable to testVars(), have testVars() change the variable, and then make that variable available to main().
Passing the variable from main() to testVars() is...
"Our" wasn't referencing YOU and me--the ideas I'm using to experiment with C have already been put to use in some scripts that I've created for my employer. So "our" more generally refers to anyone...
Thanks Salem! Looks like strstr was what I needed! I had tried strcmp previously but was unable to get it to return the value I was looking for.
Here's what I came up with:
#include <stdio.h>...
Hi,
I'm very new to C programming.
What I'm attempting to do is to run a command in Windows and then parse the output of that command for a specific string of characters. Here is the code that...