8_17echoall
:vim 8_17.c
#include "apue.h"
int main(int argc, char * argv[])
{
int i;
char **envp;
extern char **environ;
for(i = 0; i < argc; ++i){
printf("argc[%d]:%s\n",i,argv[i]);
}
for(envp = environ; *envp != NULL; ++envp){
printf("%s\n",*envp);
}
exit(0);
}
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
"8_17.c" 17L, 258C written
<bldc:/home/tingbinz/apue.3e/SBSCODE/8>R*_*G:gcc -Wall -ggdb3 -o echoall 8_17.c
In file included from apue.h:132,
from 8_17.c:1:
error.c: In function `err_doit':
error.c:121: warning: implicit declaration of function `vsnprintf'
error.c:123: warning: implicit declaration of function `snprintf'
<bldc:/home/tingbinz/apue.3e/SBSCODE/8>R*_*G:./echoall
argc[0]:./echoall
_=./echoall
PTOOLS=/opt/nwstools
POSTQUAL=ask=yes
#include "apue.h"
int main(int argc, char * argv[])
{
int i;
char **envp;
extern char **environ;
for(i = 0; i < argc; ++i){
printf("argc[%d]:%s\n",i,argv[i]);
}
for(envp = environ; *envp != NULL; ++envp){
printf("%s\n",*envp);
}
exit(0);
}
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
"8_17.c" 17L, 258C written
<bldc:/home/tingbinz/apue.3e/SBSCODE/8>R*_*G:gcc -Wall -ggdb3 -o echoall 8_17.c
In file included from apue.h:132,
from 8_17.c:1:
error.c: In function `err_doit':
error.c:121: warning: implicit declaration of function `vsnprintf'
error.c:123: warning: implicit declaration of function `snprintf'
<bldc:/home/tingbinz/apue.3e/SBSCODE/8>R*_*G:./echoall
argc[0]:./echoall
_=./echoall
PTOOLS=/opt/nwstools
POSTQUAL=ask=yes
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.