neocities.h

a C library for interacting with Neocities' API
git clone https://github.com/tanguyandreani/neocities.h
Log | Files | Refs | README | LICENSE

dtparser.h (515B)


      1 /*
      2  * dtparser
      3  *
      4  *
      5  * dtparser is free software; you can redistribute it and/or modify
      6  * it under the terms of the MIT license. See LICENSE for details.
      7  *
      8  * Copyright (c) 2017 Partha Susarla <mail@spartha.org>
      9  */
     10 
     11 #ifndef _RFC5322_DT_PARSER_H
     12 #define _RFC5322_DT_PARSER_H
     13 
     14 #include <time.h>
     15 #include <sys/time.h>
     16 #include <stdbool.h>
     17 
     18 int rfc5322_date_parse(const char *str, size_t len, time_t *t, bool usetime);
     19 int rfc5322_date_create(time_t date, char *buf, size_t len);
     20 
     21 #endif  /* _RF5322_DT_PARSER_H */