
removido
(usa Nenhuma)
Enviado em 30/03/2013 - 19:08h
Eu estive olhando o "man 3 system":
NAME
system - execute a shell command
SYNOPSIS
#include <stdlib.h>
int system (const char * string);
DESCRIPTION
system() executes a command specified in string by calling /bin/sh -c string, and returns after the command has been completed. During execution of the
command, SIGCHLD will be blocked, and SIGINT and SIGQUIT will be ignored.
RETURN VALUE
The value returned is 127 if the execve() call for /bin/sh fails, -1 if there was another error and the return code of the command otherwise.
If the value of string is NULL, system() returns nonzero if the shell is available, and zero if not.
system() does not affect the wait status of any other children.
Pode-se ver que ela retorna um valor, mas falta analisar essa chamada à
execve() prá ter certeza que é o mesmo
$? dos shellscripts.