Wednesday, September 23, 2009

A Stab at the Delete Key or DEL_KEY

Hi everyone in OOP Nation, I took the liberty of writing the switch for the DEL_KEY in the CIOL.C CODE. I hope you all take a look and give me some feedback on whether there are any bugs or not.

Here it is:
case DEL_KEY:
for(i=*offset+*curpos;str[i] != 0;i++){
str[i] = str[i+1];
}
if(*curpos != fieldlen - 1){
while(str[i] != 0){
str[i]= str[i+1];
}
}

Thanks for Blogging

No comments:

Post a Comment