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);
11
int str2int(char *string);
12 13 14 15 16
void error(); void free_mem(char **inputs, int num_inputs); void normalize(char **inputs, int num_inputs);
17
int bin2dec(char *bin);
18 19
char* dec2bin(int dec, int length); void expand_input(char **input, int required_length);