kongkolvyu wrote:
>
> The strptime function works just fine on Solaris.
> Here is an example on how I use it:
> struct tm tmpTm;
> if(strptime("20010101010101","%Y%m%d%H%M%S",&tmpTm )==NULL)
> printf("Error,String convert to time Error\n");
> On the HPUX platform, this call to strptime always returns NULL.
> Does anybody have an idea why this does not work.
>
Because strptime is not a standard C function, and you failed to
show its source code, we cannot comment on it in any way.
Whenever you need to specify a platform, you are probably off-topic
here.
--
"If you want to post a followup via groups.google.com, don't use
the broken "Reply" link at the bottom of the article. Click on
"show options" at the top of the article, then click on the
"Reply" at the bottom of the article headers." - Keith Thompson
More details at: <http://cfaj.freeshell.org/google/>
|