[MPlayer-dev-eng] Re: Quiz [OT]

Felix Buenemann atmosfear at users.sourceforge.net
Fri Nov 7 19:06:41 CET 2003


On Friday 07 November 2003 02:57, Tobias Diedrich wrote:
> Michael Niedermayer wrote:
> > and yes, its icfineefint and solw, i konw
>
> Tihs one suolhd be fsetar:
[see below]
nice, pretty fast (6x faster then my perl version).

-- 
Best Regards,
        Atmos
____________________________________________
- MPlayer Developer - http://mplayerhq.hu/ -
____________________________________________

---tobias code---
int main(int a,char **b) {
  char i,j,t,*r=*++b;
  srand(getpid());
  for(;*r;) {
    for(; *r && !isalpha(*r); r++);
    for(i = 1; isalpha(r[i+1]); i++) {
      j = rand()%i;
      t    = r[i];
      r[i] = r[++j];
      r[j] = t;
    }
    r += i+1;
  }
  puts(*b);
}

---tobias code---



More information about the MPlayer-dev-eng mailing list