This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdlib.h> | |
#include <stdio.h> | |
#include <process.h> | |
int main(int argc, char *argv[]) { | |
if (argc >= 3) { | |
// call out to cp and use the arguments passed to this program. | |
// We are using P_WAIT so that spawnlp waits for CP to return |