minor bug fixes

This commit is contained in:
stmctommyau 2023-09-11 17:56:26 +08:00
parent ecb8cbcf7b
commit 9532657455
No known key found for this signature in database
GPG Key ID: 87B1991E1277F054
5 changed files with 7 additions and 8 deletions

@ -12,6 +12,7 @@
#ifndef Utils
#define Utils
#include "sorting.h"
#include "utils.h"
#endif // !Utils
//list of functions

1
main.c

@ -19,6 +19,7 @@
#include "normal_user.h"
#ifndef Utils
#define Utils
#include "sorting.h"
#include "utils.h"
#endif // !Utils

@ -10,14 +10,9 @@
#include<ctype.h>
#endif
#ifndef SORT_H
#define SORT_H
#include "sorting.h"
#endif // !SORT_H
#ifndef Utils
#define Utils
#include "sorting.h"
#include "utils.h"
#endif // !Utils
//fucntions for menu

@ -27,8 +27,8 @@ void role_control(){
"role",
};
void * list = getLinkedList(role_list_db(),0);
lister(list,NULL,sizeofLinkedlist(list),"Role",SortItems,2,print_role,sortRole,showRole);
list_role();
// lister(list,NULL,sizeofLinkedlist(list),"Role",SortItems,2,print_role,sortRole,showRole);
list_role(db);
break;
default:
break;

@ -1,5 +1,7 @@
//user control
struct user add_user(struct user db);
struct user edit_user(struct user db,int index);
struct user delete_user(struct user db,int index);
void * showUser(void * ddb,int index);
struct Map* SortUser(void * ddb,int choice);
void print_user(void * ddb, int cur, int end,struct Map* map);