Guest User

Untitled

a guest
Apr 21st, 2018
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. void decode_runlength(char *in, char *out){
  2. while(1){
  3.  
  4. int lent = read_number(&in);
  5. // %in bedeutet: erzeuge einen Zeiger auf in
  6.  
  7. if (len==0){
  8. *out = 0; //String terminieren
  9. return;
  10. }
  11. while(len>0){
  12. *out = *in;
  13. out++;
  14. len--;
  15. }
  16.  
  17. in++;
  18. }
  19. }
Add Comment
Please, Sign In to add comment