ngspice/src/frontend/hcomp.c

11 lines
230 B
C
Raw Normal View History

#include <cpdefs.h>
#include <string.h>
int
hcomp(const void *a, const void *b)
{
struct comm **c1 = (struct comm **) a;
struct comm **c2 = (struct comm **) b;
return (strcmp((*c1)->co_comname, (*c2)->co_comname));
}