2 /* This file is part of
3 * ======================================================
5 * LyX, The Document Processor
7 * Copyright (C) 1995 Matthias Ettrich
8 * Copyright (C) 1995-1999 The LyX Team.
10 * ======================================================*/
18 #include "support/filetools.h"
20 /// generates an checksum
21 unsigned long lyxsum(char const * file);
23 /// returns a date string
27 if ((tid=time(0)) == (time_t)-1)
34 // Where can I put this? I found the occurence of the same code
35 // three/four times. Don't you think it better to use a macro definition
36 // (an inlined member of some class)?
38 inline string getUserName()
40 string userName(GetEnv("LOGNAME"));
42 userName = GetEnv("USER");
44 userName = _("unknown");