How to use _strtoui64 to convert a string to an unsigned __int64 in C

1 Answer

0 votes
#include <stdio.h>
#include <stdlib.h>

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

	unsigned __int64 ui64 = _strtoui64(s, NULL, 10);
	printf("%I64u\n", ui64);

	char ch = getchar();

	return 0;
}



/*
run:

18038372765213089826

*/

 



answered Apr 10, 2022 by avibootz

Related questions

1 answer 168 views
2 answers 105 views
1 answer 138 views
138 views asked Apr 10, 2022 by avibootz
2 answers 203 views
203 views asked Aug 10, 2019 by avibootz
1 answer 152 views
1 answer 220 views
...