changeset 6313:087f2dba0e72

<oerjan> rm letersort
author HackBot
date Sat, 28 Nov 2015 07:31:46 +0000
parents c60e68260664
children f7898134e5f5
files letersort
diffstat 1 files changed, 0 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/letersort	Sat Nov 28 07:31:03 2015 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,4 +0,0 @@
-#include <stdio.h>
-int compare(char *s,char *c){return*c-*s;}int main(){char w[40];int c,i=0;while(
-1){c=getchar();if(c<=32||c==EOF){qsort(w,i,1,compare);w[i]=0;printf("%s",w);if(c
-==EOF)break;putchar(c);i=0;}else{w[i++]=c;}}}