I have the path to an MP3 stored in an array and would like to append it to a command passed to system().
How might I be able to enumerate the contents of the array so as to present them as an argument to mplayer?Code:system("mplayer FILE")
This is a discussion on system function input from array within the C Programming forums, part of the General Programming Boards category; I have the path to an MP3 stored in an array and would like to append it to a command ...
I have the path to an MP3 stored in an array and would like to append it to a command passed to system().
How might I be able to enumerate the contents of the array so as to present them as an argument to mplayer?Code:system("mplayer FILE")
Code:char command[256] = "mplayer "; strcat[command,filename]; system(command);