-
Notifications
You must be signed in to change notification settings - Fork 0
/
charfreak.h
32 lines (28 loc) · 875 Bytes
/
charfreak.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
/* This file is part of CharFreak. */
#ifndef CHARFREAK_H
#define CHARFREAK_H
#include <stdio.h>
#include <stdbool.h>
#include <stdlib.h>
#include <string.h>
#include <wchar.h>
#include <wctype.h>
#include <locale.h>
#define SIZE_FILE 256
#define SIZE_DEFAULT 128
int size_counter; //size of counter
typedef struct Counter {int name; int num;} Counter; //stores name and number of each character
int charfreak_count (char*, int, int, Counter*, int*, int*);
int place_current (wint_t, Counter*, int*);
bool filter_tp (int, wint_t);
wint_t case_conv (wint_t);
void clear_counter (Counter*, int*, int*);
int load_setting (int*);
int edit_setting (int*);
void charfreak_sort (int, Counter*, int);
void charfreak_output (char*, int, Counter*, int, int);
void show_setting (int*, int);
void show_order_list_main ();
void show_order_list_setting ();
void show_header ();
#endif