home
list
tags
ip_location
gfwlist
torrent
log
about
new
proxy
todo
bash can not excute command
up:2016-02-02 12:31:42 edit:2016-02-02 12:31:42 view:1232
#include <stdio.h>
#include <stdlib.h>
char a[81];
int i=0;
int main(int n,char ** argn){
while(1){
char c=getchar();
if(isspace(c)){
if(a[0]=='e' && a[1]=='x' && a[2]=='i' && a[3]=='t'){
return 0;
}
else {
a[i]=0;
printf("%s\n",a);
i=0;
}
}
else {
if(i>=80) continue;
a[i++]=c;
}
}
}
TAGS:
limit bash
编辑
删除
not in sinaapp