I would like to run the following OS X command:
md5 <<< 'password'
Password is actually supposed to be a parameter, therefore I would like to know how can I "concatenate / insert" a string into another, just like we can do with printf
:
char password[] = "password";
//Something like this:
char command[] = ("md5 <<< '%s'", password);
How is it possible in C?