|
Re: lug-bg: "C" wapros
- Subject: Re: lug-bg: "C" wapros
- From: luben@xxxxxxxxxxxxx (luben karavelov)
- Date: Thu, 18 May 2000 22:52:06 +0300
> Ostawa 1% procent, kydeto move bi ti e greshkata. I az ne znam zashto
> trygwa, no wiv sledniq primer:
>
> --------------------------------------------------------------------------
>
> butt:~$ cat execvp.sh
> #!/bin/bash
> echo "Luben is wrong !"
>
> butt:~$ cat execvp.c
> #include <unistd.c>
>
> void main() {
> char *var[1];
>
> var[0]=NULL;
> execvp("./execvp.sh", var);
> }
>
> butt:~$ make execvp
> cc execvp.c -o execvp
> execvp.c: In function `main':
> execvp.c:3: warning: return type of `main' is not `int'
>
> butt:~$ ./execvp
> Luben is wrong !
>
prav si, merci za demonstraciata
Luben
==================================================================
A mail-list of Linux Users Group - Bulgaria (bulgarian linuxers)
Otpiswaneto RABOTI !!! : Majordomo@xxxxxxxxxxxxxxxxxx UNSUBSCRIBE LUG-BG
http://www.linux-bulgaria.org/ Hosted by Internet Group Ltd. - Stara Zagora
|
|
|