|
-
September 12th, 2001, 11:41 AM
#1
strftime() is not functioning for me...
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|