ref: cdc06f177f6e2b9f4a4e354ac10dabfae0fd459a dir: /libnpe/div.c/
#include <stdlib.h> div_t div(int n, int d) { return (div_t){n/d, n%d}; }