1
0
mirror of git://projects.qi-hardware.com/eda-tools.git synced 2024-11-26 05:13:07 +02:00

gencat/pdf.c (comp): make alphabetic index case-insensitive

This commit is contained in:
Werner Almesberger 2012-07-12 10:46:39 -03:00
parent dd45ce8c5e
commit 340428c92a

View File

@ -9,6 +9,7 @@
* (at your option) any later version.
*/
#define _GNU_SOURCE /* for strcasecmp */
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
@ -121,7 +122,7 @@ static int comp(const void *a, const void *b)
const struct index *ai = a;
const struct index *bi = b;
return strcmp(ai->s, bi->s);
return strcasecmp(ai->s, bi->s);
}