29 lines
366 B
C
29 lines
366 B
C
|
#include "stdio.h"
|
||
|
#include "stdlib.h"
|
||
|
#include "string.h"
|
||
|
|
||
|
#include "node.h"
|
||
|
|
||
|
#ifndef CSV_PARSER
|
||
|
#define CSV_PARSER
|
||
|
|
||
|
|
||
|
struct csv {
|
||
|
char* title;
|
||
|
int year;
|
||
|
int numlang;
|
||
|
char* languages;
|
||
|
float rating;
|
||
|
struct node* node;
|
||
|
};
|
||
|
|
||
|
struct node* parse_csv();
|
||
|
|
||
|
struct csv* parse_line(char*);
|
||
|
|
||
|
void print_movies(struct node*);
|
||
|
|
||
|
void print_line(struct csv*);
|
||
|
|
||
|
#endif
|