Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

RLE

Name: Anonymous 2015-03-03 2:25

Here's my implementation of RLE in C.
http://en.wikipedia.org/wiki/Run-length_encoding
What is it in your lang?

#include <stdio.h>
int main(void) {
int i;
char s[] = "%*[_]%n";
for(i = 0; scanf("%c", &s[3]) == 1 && scanf(s, &i) != EOF);
printf("%d%c", ++i, s[3]));
return 0;
}

Name: Anonymous 2015-03-20 20:45

>>21
Thank you!
>>25
o and p are close in QWERTY

Note: "Who are you quoting" is a usenet thing, where old posters would shitpost on the newsgroup because some people used google groups and made usenet appear as a forum.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List