예제 #1
0
파일: markdown.c 프로젝트: nono/upskirt
/* cmp_link_ref_sort • comparison function for link_ref qsort */
static int
cmp_link_ref_sort(const void *a, const void *b)
{
	const struct link_ref *lra = a;
	const struct link_ref *lrb = b;
	return bufcasecmp(lra->id, lrb->id);
}
예제 #2
0
/* cmp_link_ref • comparison function for link_ref sorted arrays */
static int
cmp_link_ref(void *key, void *array_entry) {
	struct link_ref *lr = array_entry;
	return bufcasecmp(key, lr->id); }