Leap, Difference of Squares, Grains, Collatz Conjecture, Queen Attack, Darts, Hamming, and Space Age completed yesterday. Binary and Linked List completed today.
19 lines
275 B
C
19 lines
275 B
C
#ifndef ETL_H
|
|
#define ETL_H
|
|
|
|
#include <stddef.h>
|
|
|
|
typedef struct {
|
|
int value;
|
|
const char *keys;
|
|
} legacy_map;
|
|
|
|
typedef struct {
|
|
char key;
|
|
int value;
|
|
} new_map;
|
|
|
|
int convert(const legacy_map * input, const size_t input_len,
|
|
new_map ** output);
|
|
|
|
#endif
|