molscat
|
README,
README.jkl,
README.v12,
dblas.f,
dblas.f.Z,
dcs_save.f,
diag_eispack.f,
ghm_save.f,
ghm_subs.f,
ghm_vib.f,
ident2disting.f,
lapack.f,
lapack.f.Z,
prbr_save.f,
prbr_vib.f,
read_isigu.f,
restrt.v12.f,
sbe.doc,
sbe_save.f,
sig_save.f,
spline.f,
syminv.f,
test1.input,
test1.v12.out,
test1.v14.out,
test2.input,
test2.v12.out,
test2.v14.out,
test3.f,
test3.input,
test3.v12.input,
test3.v12.out,
test3.v14.out,
test5.f,
test5.input,
test5.v12.out,
test5.v14.out,
test6.input,
test6.v12.out,
test6.v14.out,
test8.input,
test8.v12.out,
test8.v14.out,
timers.f,
timers_c.c,
v12.f,
v14.doc.tar,
v14.f,
v14.f.Z,
version_12.doc,
version_14.doc,
version_14.tutorial,
|
|
|
#include
void fdate (char *utime, long int k)
{
/* Loads *utime with the Unix format time/date string */
/* padded on the right with spaces. The argument list */
/* is suitable for calling from fortran and uses the */
/* hidden argument for the fortran string length. The */
/* calling sequence is */
/* CHARACTER*24 STR */
/* CALL FDATE(STR) */
/* */
/* If the string length of utime is too short for the */
/* date string, the latter will be truncated. */
/* JWD 11-Apr-91 */
char tbfr[26];
char *tp;
long int i;
time_t timeval;
tp=utime;
for(i=1;i<=k;i++){*utime=' ';utime++;}
utime=tp;
timeval = time((time_t*)NULL);
strcpy(tbfr,ctime(&timeval));
tp=&tbfr[0];
i=0;
while( ((int)(*tp) != 10) && (i < k) ){*utime=*tp;tp++;utime++;i++;}
}
|