that string.h was a bit of sarcasim. So was Edwins comment. Sorry Edwin.
But i thought that post on the music was a bit much. even though you did
trry to put it into lamen terms. and basicly all that command realy does
is goes through the cmd_type table qsort does its thing. and somehow its
choking where i said it is. //puke.  i read some of carls from the
archives. and seen Edwins command function there. thats why i commented
his name where i did. Edwin do i have permission to use your code sir?
its a nice block. gives me some ideas.

On Fri, 24 May 2002, Chad Simmons wrote:

>
> --- Daniel Scott Wilds <[EMAIL PROTECTED]> wrote:
> >
> > sorry Jer
> > ok so im playing with qsort ey?
> > why not gota start sometime. anyway heres the bugger.
> >
> > #0  0x400507f9 in msort_with_tmp (b=0x80ff054, n=20, s=20, cmp=0x8098410
> > <srt_cmds>, t=0x813aab8 "\e\030\020\b\237\005\b\b")
> >     at ../sysdeps/i386/i486/bits/string.h:121
> > 121     ../sysdeps/i386/i486/bits/string.h: No such file or directory.
> >         in ../sysdeps/i386/i486/bits/string.h
> >
> > string.h tells me alot. heres the code.
> >
> > int srt_cmds(const void *p1, const void *p2)
> > {
> >  const struct cmd_type cmd1 = *(struct cmd_type *)p1; //gimme somthing to
> > //look at
> >  const struct cmd_type cmd2 = *(struct cmd_type *)p2; //just plain simple
> >
> >   if (cmd1.name == NULL) return 2; //null'em
> >     else
> >   if (cmd2.name == NULL) return 1; //null'em
> >
> >   return ( strcmp( cmd1.name, cmd2.name ) ); //puke
> > }
> >
> > void sort_commands(void)
> > {
> >  int cmd; // bla
> >
> >    for (cmd=0; cmd_table[cmd].name != NULL && cmd_table[cmd].name[0] !=
> > '\0'; cmd++) // countem
> >    if (cmd_table[cmd].name == NULL) break; //if all else fails
> >
> >  logf("Number of useless commands i have %d.", cmd); // What this
> > mean Edwin?
> >
> >  qsort((void *)cmd_table, //Yar!
> >        cmd,//count
> >        sizeof(cmd_table[0]), //size
> >        srt_cmds); // sort
> > }
> >
> >
> >
> >
> > --
> > ROM mailing list
> > [email protected]
> > http://www.rom.org/cgi-bin/mailman/listinfo/rom
>
>
> =====
> -----BEGIN GEEK CODE BLOCK-----
> Version 3.1
> GCS/L/C/O d-(+) s++:+ a-- C+++$>++++ UBLS++++$
> P+++(--)$ L++>+++ E--- W+>++$ N !o K? w(--) !O
> M- !V PS+ PE(++) Y+ PGP->+ t- 5 X+() R(+) tv+@
> b++(+++) !DI+++ D G(-) e>+++$ h---() r+++ y+++
> ------END GEEK CODE BLOCK------
>
> __________________________________________________
> Do You Yahoo!?
> LAUNCH - Your Yahoo! Music Experience
> http://launch.yahoo.com
>


Reply via email to