hrmm ok Edwin but i already posted it. Sorry list i know its a repeat.
int srt_cmds(const void *p1, const void *p2)
{
struct cmd_type * cmd1 = (struct cmd_type *)p1;
struct cmd_type * cmd2 = (struct cmd_type *)p2;
if (cmd1->name == NULL) return 2;
else
if (cmd2->name == NULL) return 1;
return ( strcmp( cmd1->name, cmd2->name ) ); //dies here
}
void sort_commands(void)
{
int cmd;
for (cmd=0; cmd_table[cmd].name != NULL && cmd_table[cmd].name[0] !=
'\0'; cmd++);
logf("Size of command table: %d elements.", cmd);
/* qsort command table */
qsort((void *)cmd_table,
cmd,
sizeof(cmd_table[0]),
srt_cmds);
}
#0 0x400507f9 in msort_with_tmp (b=0x8100074, n=20, s=20, cmp=0x80d0b58
<srt_cmds>,
t=0x813c3d8 "r(\020\b\237\005\b\b") at
../sysdeps/i386/i486/bits/string.h:121
#1 0x40050749 in msort_with_tmp (b=0x8100060, n=3, s=20, cmp=0x80d0b58
<srt_cmds>,
t=0x813c3d8 "r(\020\b\237\005\b\b") at msort.c:48
#2 0x4005072d in msort_with_tmp (b=0x8100060, n=6, s=20, cmp=0x80d0b58
<srt_cmds>,
t=0x813c3d8 "r(\020\b\237\005\b\b") at msort.c:47
#3 0x4005072d in msort_with_tmp (b=0x8100060, n=12, s=20, cmp=0x80d0b58
<srt_cmds>,
t=0x813c3d8 "r(\020\b\237\005\b\b") at msort.c:47
#4 0x4005072d in msort_with_tmp (b=0x8100060, n=24, s=20, cmp=0x80d0b58
<srt_cmds>,
t=0x813c3d8 "r(\020\b\237\005\b\b") at msort.c:47
#5 0x4005072d in msort_with_tmp (b=0x8100060, n=48, s=20, cmp=0x80d0b58
<srt_cmds>,
t=0x813c3d8 "r(\020\b\237\005\b\b") at msort.c:47
#6 0x4005072d in msort_with_tmp (b=0x8100060, n=96, s=20, cmp=0x80d0b58
<srt_cmds>,
t=0x813c3d8 "r(\020\b\237\005\b\b") at msort.c:47
#7 0x4005072d in msort_with_tmp (b=0x8100060, n=193, s=20, cmp=0x80d0b58
<srt_cmds>,
t=0x813c3d8 "r(\020\b\237\005\b\b") at msort.c:47
#8 0x4005072d in msort_with_tmp (b=0x8100060, n=387, s=20, cmp=0x80d0b58
<srt_cmds>,
t=0x813c3d8 "r(\020\b\237\005\b\b") at msort.c:47
#9 0x4005096d in qsort (b=0x8100060, n=387, s=20, cmp=0x80d0b58
<srt_cmds>) at msort.c:150
#10 0x080d0be9 in sort_commands () at sort.c:70
#11 0x0807d114 in boot_db (fCopyOver=0 '\000') at db.c:496
#12 0x0807736c in main (argc=2, argv=0xbffff904) at comm.c:446
#13 0x4003c647 in __libc_start_main (main=0x8077214 <main>, argc=2,
ubp_av=0xbffff904,
init=0x8048ef0 <_init>, fini=0x80d6500 <_fini>, rtld_fini=0x4000dcd4
<_dl_fini>, stack_end=0xbffff8fc)
at ../sysdeps/generic/libc-start.c:129
On Sat, 25 May 2002, Edwin Groothuis wrote:
> On Fri, May 24, 2002 at 10:50:52PM -0400, Daniel Scott Wilds wrote:
> > Well just you had no comment about my post until now. I was just a little
> > worried that you didnt reply. Your usualy good about everything. Ohh i
>
> Honestly, if you have a problem with _your_ code, you can't expect
> from us to understand what's going on if you're not giving enough
> information. Like, where did it crash in your code? And what are
> the relevant variables at that moment? And no, I'm not interested
> in the debugging of libc, we're talking about your code which is
> giving problems :-)
>
> Edwin
>
> --
> Edwin Groothuis | Personal website: http://www.MavEtJu.org
> [EMAIL PROTECTED] | Interested in MUDs? Visit Fatal Dimensions:
> bash$ :(){ :|:&};: | http://www.FatalDimensions.org/
>