changed formatting
This commit is contained in:
parent
3252bf67ae
commit
76c7f414ef
@ -7,8 +7,7 @@
|
|||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
void parse_event(char event_string[], struct event **head)
|
void parse_event(char event_string[], struct event **head) {
|
||||||
{
|
|
||||||
char *start_date = strstr(event_string, "\nDTSTART");
|
char *start_date = strstr(event_string, "\nDTSTART");
|
||||||
char *end_date = strstr(event_string, "\nDTEND");
|
char *end_date = strstr(event_string, "\nDTEND");
|
||||||
char *summary = strstr(event_string, "\nSUMMARY");
|
char *summary = strstr(event_string, "\nSUMMARY");
|
||||||
@ -49,8 +48,7 @@ void parse_event(char event_string[], struct event **head)
|
|||||||
|
|
||||||
// the unfolded string has a space
|
// the unfolded string has a space
|
||||||
// as a separator between what where previously separate lines
|
// as a separator between what where previously separate lines
|
||||||
void unfolding_string(char *folded_string, char *unfolded_string)
|
void unfolding_string(char *folded_string, char *unfolded_string) {
|
||||||
{
|
|
||||||
int j = 0;
|
int j = 0;
|
||||||
for (int i = 0; i < strlen(folded_string); i++) {
|
for (int i = 0; i < strlen(folded_string); i++) {
|
||||||
if (folded_string[i] == '\r' && folded_string[i + 1] == '\n'
|
if (folded_string[i] == '\r' && folded_string[i + 1] == '\n'
|
||||||
|
Reference in New Issue
Block a user