Skip to content

Instantly share code, notes, and snippets.

#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