Skip to content

Instantly share code, notes, and snippets.

View kassane's full-sized avatar

Matheus C. França kassane

View GitHub Profile
@kassane
kassane / generic_qsort.c
Created February 29, 2016 13:02 — forked from marcoscastro/generic_qsort.c
generic qsort
#include <stdio.h>
void qsort(void *v[], int esq, int dir,
int(*comp)(void *, void *))
{
int i, ultimo;
void troca(void * v[], int i, int j);
if(esq >= dir)
return;