<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML>
<HEAD>
<TITLE> {The S-lang C Library Reference}: SLcurrent_time_string</TITLE>
<LINK HREF="cref-99.html" REL=next>
<LINK HREF="cref-97.html" REL=previous>
<LINK HREF="cref.html#toc98" REL=contents>
</HEAD>
<BODY>
<A HREF="cref-99.html">Next</A>
<A HREF="cref-97.html">Previous</A>
<A HREF="cref.html#toc98">Contents</A>
<HR>
<H2><A NAME="SLcurrent_time_string"></A> <A NAME="s98">98. <B>SLcurrent_time_string</B></A></H2>

<P>
<DL>
<DT><B> Synopsis </B><DD><P>Get the current time as a string
<DT><B> Usage </B><DD><P><CODE>char *SLcurrent_time_string (void)</CODE>
<DT><B> Description </B><DD><P>The <CODE>SLcurrent_time_string</CODE> function uses the C library function
call <CODE>ctime</CODE> to obtain a string representation of the the
current date and time in the form
<BLOCKQUOTE><CODE>
<PRE>
     "Wed Dec 10 12:50:28 1997"
</PRE>
</CODE></BLOCKQUOTE>

However, unlike the <CODE>ctime</CODE> function, a newline character is not
present in the string.  
<P>The returned value points to a statically allocated memory block
which may get overwritten on subsequent function calls.
<DT><B> See Also </B><DD><P><CODE>SLmake_string</CODE>
</DL>
<P>
<P>
<P>
<P>
<HR>
<A HREF="cref-99.html">Next</A>
<A HREF="cref-97.html">Previous</A>
<A HREF="cref.html#toc98">Contents</A>
</BODY>
</HTML>
