OS1/movies/csv_parser.h

31 lines
397 B
C
Raw Normal View History

#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;
2023-10-13 00:55:11 -07:00
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*);
2023-10-13 00:55:11 -07:00
int count_char(char*, char);
#endif