Reading and writing long longs

Roland McGrath roland at ai.mit.edu
Wed Aug 22 13:22:51 AEST 1990


The GNU C library's printf and scanf functions support long long ints.
So, when I release the C library (don't ask when), you will be able to do:

	{
	  long long int foo;
	  scanf("%lld", &foo);
	  printf("%lld\n", foo);
	}

you can also use `L' (which means long double for e, f, and g formats) to
specify long long int for formats which deal with ints.
--
	Roland McGrath
	Free Software Foundation, Inc.
roland at ai.mit.edu, uunet!ai.mit.edu!roland



More information about the Comp.lang.c mailing list