[so] tema1 - erori ciudate
Catalin Iacob
iacobcatalin at gmail.com
Mon Jan 26 22:54:16 EET 2009
2009/1/26 Alexandru Goia <webaigoia at gmail.com>:
> 2) La testul 9 iarasi am eroare, desi am cod de genul :
>
> if (scmd->params == NULL)
> {
> int tmp = execlp((scmd->verb)->string, (scmd->verb)->string,
> (char *) NULL);
>
> if (tmp == -1)
> printf("Execution failed for '%s'\n",
> (scmd->verb)->string);
> exit(tmp); }
>
> deci am mesajul de eroare care se cerea la testul 9.
Mesajul trebuie scris la standard error nu la standard output ;).
fprintf(stderr, ...);
More information about the so
mailing list