mirror of
git://projects.qi-hardware.com/eda-tools.git
synced 2024-11-29 17:26:15 +02:00
gencat/pdf.c (comp): make alphabetic index case-insensitive
This commit is contained in:
parent
dd45ce8c5e
commit
340428c92a
@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user