imaxdiv.c\stdlib\src - musl - musl - an implementation of the standard library for Linux-based systems

index : musl
musl - an implementation of the standard library for Linux-based systems
summary refs log tree commit diff
path: root/src/stdlib/imaxdiv.c
blob: b2ce821f51e3e2428e773e2e9eae6c2156157fb6 (plain) (blame)
1
2
3
4
5
6
#include <inttypes.h>
imaxdiv_t imaxdiv(intmax_t num, intmax_t den)
{
	return (imaxdiv_t){ num/den, num%den };
}
generated by cgit v1.2.1 (git 2.18.0) at 2025年09月09日 03:17:41 +0000

AltStyle によって変換されたページ (->オリジナル) /