Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void AddCharToBufor(char k, char *bufor)
- {
- int l=CheckStringlength(bufor);
- char newBufor[l+1];
- for(int i=0; i<l;i++)
- {
- if(i==(l-1))
- newBufor[i]=k;
- else
- newBufor[i]=bufor[i];
- }
- newBufor[l+1]='\0';
- l=CheckStringlength(newBufor);
- for(int i=0;i<l;i++)
- {
- bufor[i]=newBufor[i];
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment