0

I am working on a project, that needs to execute a command (glow) with an argument that the user entered.

Currently using this:

#include <stdlib.h>                                                                                                                        
#include <stdio.h>                                                                                                                         
int main() {
   char argument[100];                                                                                                                
   fgets(argument, 100, stdin);                                                                                                       
   system("glow %s", argument);                                                                                                       
   return 0;
}  

And when I compile this, I get "error: too many arguments to function call, expected 1, have 2 system("glow %s", argument);"

Wantyapps
  • 83
  • 1
  • 10

0 Answers0