Hi, all

I have a naive question on using Coreutils.

I am trying to invoke a coreutils function, say 'echo' from a C program.
But because coreutils are made of 'main' function themselves, so I cannot
write a program like

int main(int argc, char ** argv){
  //echo.main(argc,argv);
}

because it is not allowed to have two 'main' functions. Is there a
workaround to invoke Coreutils via another "main" program? Thanks.


Zhoulai

Reply via email to