Discordian date: Difference between revisions

Content added Content deleted
(→‎{{header|Go}}: language change. built in error type.)
Line 266: Line 266:
For the source code of <code>ddate</code> in util-linux package, see [[http://jubal.westnet.com/hyperdiscordia/ddate.html]].
For the source code of <code>ddate</code> in util-linux package, see [[http://jubal.westnet.com/hyperdiscordia/ddate.html]].


<lang C>#include <string.h>
<lang C>#include <stdlib.h>
#include <malloc.h>
#include <stdlib.h>
#include <stdio.h>
#include <stdio.h>
#include <time.h>
#include <time.h>
Line 327: Line 325:
}
}
printf( "%s\n", ddate( year, doy ) );
char * result = ddate( year, doy );
puts( result );
free( result );


return 0;
return 0;