Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void decode_runlength(char *in, char *out){
- while(1){
- int lent = read_number(&in);
- // %in bedeutet: erzeuge einen Zeiger auf in
- if (len==0){
- *out = 0; //String terminieren
- return;
- }
- while(len>0){
- *out = *in;
- out++;
- len--;
- }
- in++;
- }
- }
Add Comment
Please, Sign In to add comment