public inbox for linux-newbie@vger.kernel.org
 help / color / mirror / Atom feed
* what do the dots mean?
@ 2005-09-04 20:55 _z33
  2005-09-04 12:05 ` sumit kalra
  0 siblings, 1 reply; 6+ messages in thread
From: _z33 @ 2005-09-04 20:55 UTC (permalink / raw)
  To: linux-newbie

I'm not able to understand the usage of dots (inside the printf's 
arguments) in the following code. Please enlighten me!

	[code]
	#include <stdio.h>
	#include <time.h>
	
	main()
	{	
		time_t now;
			
		time(&now);
		printf("It's %.24s.\n", ctime(&now));
		
		system ("PAUSE");
		return 0;
	}
	[/code]

_z33
-- 
I love TUX; well... that's an understatement :)

-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2005-09-06 16:51 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-09-04 20:55 what do the dots mean? _z33
2005-09-04 12:05 ` sumit kalra
2005-09-05  0:45   ` _z33
2005-09-04 13:10     ` sumit kalra
2005-09-05 16:04     ` Stephen Samuel
2005-09-06 16:51       ` _z33

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox