diff --git a/stdlib/div.c b/stdlib/div.c index e6ced47..c063491 100644 --- a/stdlib/div.c +++ b/stdlib/div.c @@ -1,7 +1,7 @@ #include -div_t div(int x, int y) { - div_t ret_val; +struct div_t div(int x, int y) { + struct div_t ret_val; ret_val.quot = x / y; ret_val.rem = x % y; return ret_val; diff --git a/stdlib/ldiv.c b/stdlib/ldiv.c index 2f76cdb..0c44b82 100644 --- a/stdlib/ldiv.c +++ b/stdlib/ldiv.c @@ -1,7 +1,7 @@ #include -ldiv_t ldiv(long int x, long int y) { - ldiv_t ret_val; +struct ldiv_t ldiv(long int x, long int y) { + struct ldiv_t ret_val; ret_val.quot = x / y; ret_val.rem = x % y; return ret_val; diff --git a/stdlib/lldiv.c b/stdlib/lldiv.c index 77c9958..d945d0a 100644 --- a/stdlib/lldiv.c +++ b/stdlib/lldiv.c @@ -1,7 +1,7 @@ #include -lldiv_t lldiv(long long int x, long long int y) { - lldiv_t ret_val; +struct lldiv_t lldiv(long long int x, long long int y) { + struct lldiv_t ret_val; ret_val.quot = x / y; ret_val.rem = x % y; return ret_val;