Well, the first dot along with the 24 (%.24s) specifies to printf to print only 24 characters of the string.
Second dot is a full stop after the string. :-) -Sumit --- _z33 <[EMAIL PROTECTED]> wrote: > 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 [EMAIL PROTECTED] > More majordomo info at > http://vger.kernel.org/majordomo-info.html > Please read the FAQ at > http://www.linux-learn.org/faqs > ___________________________________________________________ Does your mail provider give you FREE antivirus protection? Get Yahoo! Mail http://uk.mail.yahoo.com - To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.linux-learn.org/faqs