Anonymous
public c v1 · immutable#include <stdio.h>int main(){ FILE* fp=popen("dir","r"); char buf[4096]; fread(buf,1,4096,fp); fclose(fp); printf("Output (%d bytes):\n%s\neof\n",strlen(buf),buf); return 0;}#include <stdio.h>int main(){ FILE* fp=popen("dir","r"); char buf[4096]; fread(buf,1,4096,fp); fclose(fp); printf("Output (%d bytes):\n%s\neof\n",strlen(buf),buf); return 0;}