Re: [xml] sort functions



So, it's just a function I can use from a basic C libarary.

qsort
Performs a quick sort.

void qsort( void *base, size_t num, size_t width, int (__cdecl *compare )(const void *elem1, const void *elem2 ) );

I guess it's this one, right?

Thanks

From: Lucas Brasilino <brasilino recife pe gov br>
To: Zichao Mao <mzichao hotmail com>
CC: xml gnome org
Subject: Re: [xml] sort functions
Date: Mon, 12 Apr 2004 14:56:16 -0300

Hi!

Thanks, Lucas.

But what is this libc you mentioned? Do you mean I should implement my own qsort?

        I don't know which platform you're using but libc It's the
basic C Library. If you are using Linux your libc is the glibc
(Gnu C Library). Solaris, AIX and others has their owns.
        Since qsort is part of POSIX (I'm not sure but also BSD 4.3),
your C Library should ship it. So you don't need to implement it :)


--

[]'s
Lucas Brasilino
brasilino recife pe gov br
http://www.recife.pe.gov.br
Emprel -        Empresa Municipal de Informatica (pt_BR)
                Municipal Computing Enterprise (en_US)
Recife - Pernambuco - Brasil
Fone: +55-81-34167078


_________________________________________________________________
Free up your inbox with MSN Hotmail Extra Storage! Multiple plans available. http://join.msn.com/?pgmarket=en-us&page=hotmail/es2&ST=1/go/onm00200362ave/direct/01/




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]