Blame view

common/auxiliar.h 496 Bytes
Imanol-Mikel Barba Sabariego authored
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#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);

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

void normalize(char **inputs, int num_inputs);
Imanol-Mikel Barba Sabariego authored
16
17
int bin2dec(char *bin);
char* dec2bin(int dec, int length);