the following code is used:
char strtime[15];
time_t tms;
time(&tms);

printf("\n %s",ctime(&tms));

strftime(strtime,9,"%m",&tms);

printf("\n %s",strtime);

The expected output from the second printf is 09 when run on September. But some wrong value is printed. I m using DIGITAL unix.

Please help me to resolve

-shinto