Auto commit
This commit is contained in:
parent
53b34d917f
commit
c573ab7540
@ -29,12 +29,25 @@ char *fun(char input[])
|
||||
}
|
||||
int outputIndex = 0;
|
||||
/**********Program**********/
|
||||
int i;
|
||||
int i,s,t;
|
||||
for(i=0;i<len;i++){
|
||||
while(input[i]=='['){
|
||||
|
||||
if(input[i]=='['){
|
||||
i++;
|
||||
s=0;
|
||||
while(input[i] <'a'||input[i]>'z'){
|
||||
s=s*10+(input[i] - 48);
|
||||
i++;
|
||||
}
|
||||
}
|
||||
while(s>0){
|
||||
t=i;
|
||||
while(input[t] != ']'){
|
||||
output[outputIndex++] = input[t++];
|
||||
}
|
||||
s--;
|
||||
}
|
||||
}
|
||||
output[outputIndex] = '\0';
|
||||
/********** End **********/
|
||||
return output;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user