Basic Question (of execv)



Hi;

It maybe sound stupid.. but I dont know how to 'create a file', for
example, after clicking the button, a file needs to be created (I know
how to create the signal_function).

I would like to create the file with: touch, I have something like:

void Agenda_crear(GtkWidget *objeto, gpointer data) {

  g_print("Creando la agenda");
  execlp("touch /home/unmada/test.pfs",NULL);
}

But no new file its created!

Thanks.

Paul Fischer





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]