Search:

Type: Posts; User: theitsmith

Search: Search took 0.00 seconds.

  1. Replies
    3
    Views
    1,316

    Ok, apologies. I edited down the code to only the...

    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. :-)
  2. Replies
    3
    Views
    1,316

    Breaking out of a loop

    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...
  3. Replies
    4
    Views
    1,888

    Thanks, this worked! #include ...

    Thanks, this worked!



    #include <stdio.h>
    #include <stdlib.h>

    void testVars(char *a, char** b);

    int main()
  4. Replies
    4
    Views
    1,888

    Passing variables to functions

    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...
  5. Replies
    6
    Views
    1,586

    "Our" wasn't referencing YOU and me--the ideas...

    "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...
  6. Replies
    6
    Views
    1,586

    Thanks Salem! Looks like strstr was what I...

    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>...
  7. Replies
    6
    Views
    1,586

    Search command output for string

    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...
Results 1 to 7 of 7