the Discordian date utility ddate gives the 11th, 12th and 13th of the month as
the "11st", "12nd" and "13rd". Unless this is a religious thing, please apply
the patch below.
Signed-off-by: Volker Schatz <oss@volkerschatz.com>
#define DY(y) (y+1166)
static inline char *ending(int i) {
- return (i%10==1)?"st":(i%10==2?"nd":(i%10==3?"rd":"th"));
+ return i/10==1?"th":(i%10==1?"st":(i%10==2?"nd":(i%10==3?"rd":"th")));
}
static inline int leapp(int i) {