/**************************************************************/
  /*                                                            */
  /*      UNIX 1 / WS 92/93       Gruppe  ux803                 */
  /*      4. Uebung - Aufgabe 3 - prompt.c                      */
  /*                                                            */
  /*      Vorname     Name        Matrikelnr.                   */
  /*     ---------   -------     -------------                  */
  /*      Dietmar     Dierks        125761                      */
  /*      Roman       Czyborra      127221                      */
  /*      Torsten     Buller        117894                      */
  /*      Gerasimos   Paliatsaras   140956                      */
  /*                                                            */
  /**************************************************************/

#include <time.h> /* time_t, tm, time, localtime, strftime */
#define BUFLEN 18

void show_prompt()
{
  time_t t; /* enthaelt aktuelle Zeit */
  struct tm *tm;
  char prompt[BUFLEN];

  t = time(0); /* unbrauchbares Format */
  tm = localtime(&t); /* also: Umwandlung */
  strftime(prompt, BUFLEN, "%j/%Y %H:%M > ",tm); /* formatieren */
  printf("%s",prompt);
}