Search:

Type: Posts; User: cas

Search: Search took 0.02 seconds.

  1. Replies
    6
    Views
    3,513

    $PATH is not the current directory; it's the...

    $PATH is not the current directory; it's the search path for executables. At any rate, simply changing an environment variable won't change your directory, at least not on any platform I'm aware of....
  2. Replies
    6
    Views
    3,513

    Not directly. You can use snprintf() to build up...

    Not directly. You can use snprintf() to build up the string, though:


    char cmd[1024];
    snprintf(cmd, sizeof cmd, "find / -name %s", args[1]);
    system(cmd);

    If you don't have snprintf() (it's...
Results 1 to 2 of 2