Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!uwm.edu!uwvax!umn-d-ub!umnd-cpe-cola!halam From: halam@umnd-cpe-cola.d.umn.edu (haseen alam) Newsgroups: comp.lang.c Subject: How do I read system time? Message-ID: <3418@umn-d-ub.D.UMN.EDU> Date: 5 May 90 01:50:11 GMT Sender: root@umn-d-ub.D.UMN.EDU Reply-To: halam@umnd-cpe-cola.d.umn.edu (haseen alam) Organization: University of Minnesota, Duluth Computer Science Lines: 14 Hi Guru's, I am trying to read in the local time to use the minute and second information as seeds to srandom. But all my C books just give explanations that I could not properly implement. Now I need some small example. I am trying to call one of the time functions to setup the tm struct, so that I can read the tm_sec and tm_min fields. So will someone please send me the required code segment via e-mail, since I am not a regular reader of this group. Thanks in advance. Haseen.