Back to index

plt-scheme  4.2.1
Functions
dynexmpl.c File Reference
#include "escheme.h"
#include <time.h>

Go to the source code of this file.

Functions

static Scheme_Objectsch_date (int argc, Scheme_Object **argv)
Scheme_Objectscheme_reload (Scheme_Env *env)
Scheme_Objectscheme_initialize (Scheme_Env *env)

Function Documentation

static Scheme_Object* sch_date ( int  argc,
Scheme_Object **  argv 
) [static]

Definition at line 9 of file dynexmpl.c.

{
  time_t clock;
  struct tm *now;
  char *str;

  if (argc)
    scheme_wrong_count("date", 0, 0, argc, argv);

  time(&clock);
  now = localtime(&clock);
  str = asctime(now);

  /* Get rid of newline */
  str[24] = 0;

  return scheme_make_string(str);
}

Here is the caller graph for this function:

Definition at line 35 of file dynexmpl.c.

{
  return scheme_reload(env);
}

Here is the call graph for this function:

Definition at line 28 of file dynexmpl.c.

Here is the call graph for this function: