Re: [LIP] query about string to time_t conversion.

<ripley-gGZFqZ9RcmRmR6Xm/[email protected]>
Newsgroups gmane.user-groups.linux.india.programmers
Organization Portal Agory S.A.
Message-ID <[email protected]>
Hello




Time_t it is really a long int /sometimes /i think it depends on 
type of system it can bo also a floating point/


So I think it's impossible to put time_t argument into sscanf where 
char* argument should be.




But you can simple try to 


time_t time1 = atol(char *argument) //function which converts string 
to long)




And look at


http://www.gnu.org/software/libc/manual/html_node/index.html#Top




this is a huge glibc manual where you can find EVERYTHING !!!




Good luck


Asia Sledzik




------ Wiadomość oryginalna ------


Od:    Shehjar Tikoo <shehjar_tikoo-/[email protected]>


Data:  2003-12-19 16:24


Temat: [LIP] query about string to time_t conversion.




:-> Hi all.


:-> 


:-> Can someone please tell me what type specifier I


:-> should use to convert a string to time_t using the


:-> sscanf function?


:-> 


:-> Thanks is advance.


:-> 


:-> Shehjar


:-> 


:-> 


:-> __________________________________


:-> Do you Yahoo!?


:-> New Yahoo! Photos - easier uploading and sharing.


:-> http://photos.yahoo.com/


:-> 


:-> 


:-> -------------------------------------------------------


:-> This SF.net email is sponsored by: IBM Linux Tutorials.


:-> Become an expert in LINUX or just sharpen your skills.  Sign up 
for IBM's


:-> Free Linux Tutorials.  Learn everything from the bash shell to 
sys admin.


:-> Click now! http://ads.osdn.com/?
ad_id=1278&alloc_id=3371&op=click


:-> _______________________________________________


:-> linux-india-programmers mailing list


:-> linux-india-programmers-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org


:-> https://lists.sourceforge.
net/lists/listinfo/linux-india-programmers


:-> 


:-> ------------ R E K L A M A ----------





------------ R E K L A M A ------------
Gotowy do drogi? Swiateczny Kalendarz SAS zaprasza! 
Przez 24 dni oferujemy 24 oferty specjalne do Europy i USA. 
Tylko na stronie http://www.scandinavian.net/ (wybierz Polske)


-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.