"Fossies" - the Fresh Open Source Software Archive

Member "dateutils-0.4.6/test/struct-5.c" (19 Mar 2019, 401 Bytes) of package /linux/privat/dateutils-0.4.6.tar.xz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file.

    1 #if defined HAVE_CONFIG_H
    2 # include "config.h"
    3 #endif  /* HAVE_CONFIG_H */
    4 #include "dt-core.h"
    5 
    6 int
    7 main(void)
    8 {
    9     struct dt_dt_s dt;
   10 
   11     dt.neg = 0;
   12     dt.xxx = 0;
   13     dt.typ = DT_SEXY;
   14     if (dt.d.typ != (dt_dtyp_t)DT_SEXY || dt.d.neg || dt.d.xxx) {
   15         return 1;
   16     }
   17 
   18     dt_make_sandwich(&dt, DT_DUNK, DT_TUNK);
   19     if (!dt.sandwich || dt.d.neg || dt.d.xxx) {
   20         return 1;
   21     }
   22     return 0;
   23 }
   24 
   25 /* struct-5.c ends here */