반응형
Notice
Recent Posts
Recent Comments
Link
관리 메뉴

bro's coding

OS.systemcall.exec..p 본문

[IT]/[Operating system]

OS.systemcall.exec..p

givemebro 2020. 10. 14. 04:00
반응형

SYNOPSIS

#include <unistd.h>

int execlp(const char *file, const char *arg0, ... /*, (char *)0 */);
int execvp(const char *file, char *const argv[]);

Using execlp() The following example searches for the location of the ls command among the directories specified by the PATH environment variable. #include <unistd.h> int ret; ... ret = execlp ("ls", "ls", "-l", (char *)0);

반응형
Comments