LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

strptime

Has anyone ported the strptime function to Win32? Is there any similar function that does the same thing? (strptime = converse of strftime)

Thanx,
Orlan
0 Kudos
Message 1 of 2
(3,215 Views)
Hello cosmo,

The only thing I have found that could possible work is using the cygwin libraries. In particular, I would suggest downloading one of the cygwin-src-*.tar.bz2 files. Inside that, take a look at the following directory: cygwin-1.5.12-1/newlib/libc/time/strptime.c. For your reference, I have attached the strptime code to this post.

Instead of rebuilding that code, you could try to call the strptime function directly from the cygwin1.dll. It's not the easiest thing to do, but it should be possible. The following discussion talks a little bit about the process. Since this code is third-party, I would make sure to adhere to the licensing/copyright agreements attached to the code.

Hope that helps.
Wendy L
LabWindows/CVI Developer Newsletter
0 Kudos
Message 2 of 2
(3,192 Views)