21 lines
331 B
C
21 lines
331 B
C
|
|
#include <debug.h>
|
|
|
|
#include <string/compare.h>
|
|
|
|
#include "struct.h"
|
|
#include "compare.h"
|
|
|
|
int compare_variables(const void* a, const void* b)
|
|
{
|
|
ENTER;
|
|
|
|
const struct variable * const A = a;
|
|
const struct variable * const B = b;
|
|
|
|
int cmp = compare_string(A->name, B->name);
|
|
|
|
EXIT;
|
|
return cmp;
|
|
}
|
|
|