Ticker

6/recent/ticker-posts

C exercise: run host command with system()

To run host command in C program, call system() of stdlib.

run host command with system()
run host command with system()

#include 
#include

int main(){
system("df -h");
return 0;
}


Related:
- Run host command and get result with popen()

إرسال تعليق

0 تعليقات