From a0721feda553687906adbf60aa510bff4e6a2075 Mon Sep 17 00:00:00 2001 From: Miguel Espino <lfc083@usask.ca> Date: Thu, 21 Nov 2024 15:55:02 -0600 Subject: [PATCH] made the header file for the makefile --- qsort.h | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 qsort.h diff --git a/qsort.h b/qsort.h new file mode 100644 index 0000000..d7d4686 --- /dev/null +++ b/qsort.h @@ -0,0 +1,28 @@ + /*------------------------------------ + * Miguel Espino + * ll352639 + * lfc083 + * ------------------------------------*/ + +#ifndef QSORT_H +#define QSORT_H + +typedef int (*Comparator)(void *,void *); + +int compareComplex(void *first, void *second); + +int compareDouble(void *first, void *second); + +int compareInt(void *first, void *second); + +void swap(void *v[], int i, int j); + +void myQsort(void *v[], int left, int right, Comparator comp); + +int myGetline(char s[], int lim); + +int *readlines(char *lineptr[], int maxLines); + +void writelines(char *lineptr, int nlines); + +#endif -- GitLab