Blame view

common/auxiliar.h 578 Bytes
Imanol-Mikel Barba Sabariego authored
1
2
3
4
5
6
7
8
9
10
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <stdint.h>

char* substring(char *string, uint8_t start, uint8_t end);
int next_occurrence(char *string, char character);
int num_occurrences(char *string, char character);
int last_occurrence(char *string, char character);
char** comma_separate(char *input);
Imanol-Mikel Barba Sabariego authored
11
int str2int(char *string);
Imanol-Mikel Barba Sabariego authored
12
13
14
15
16

void error();
void free_mem(char **inputs, int num_inputs);

void normalize(char **inputs, int num_inputs);
Imanol-Mikel Barba Sabariego authored
17
int bin2dec(char *bin);
Imanol-Mikel Barba Sabariego authored
18
19
char* dec2bin(int dec, int length);
void expand_input(char **input, int required_length);