C言語でたとえばlsコマンドを実行した結果を得るときはどうするのぁ?

#include<??>
#include<stdin.h>
main(){
char str[100];
str = ??system("ls");
printf(str);

return(0);
}
?のとこがわからん
教えてくれ