How to use strtoumax in C

1 Answer

0 votes
#include <stdio.h>
#include <stdint.h>
#include <inttypes.h>

int main() {
	char s[] = "8593879350";

	uintmax_t uimax = strtoumax(s, NULL, 10);

	printf("%ju\n", uimax);

	char ch = getchar();

	return 0;
}




/*
run:

8593879350

*/

 



answered Apr 10, 2022 by avibootz
edited Apr 10, 2022 by avibootz

No related questions found

...