version 1.36, 2001/03/13 00:00:24
|
version 1.37, 2001/03/13 02:37:49
|
Line 40 static int rand() {
|
Line 40 static int rand() {
|
extern double atof(const char *c); |
extern double atof(const char *c); |
|
|
int main(int argc,char *argv[]) { |
int main(int argc,char *argv[]) { |
|
time_t t=time(0); |
|
puts(asctime(localtime(&t))); |
|
#if 0 |
struct servent *foo=getservbyname("ident","tcp"); |
struct servent *foo=getservbyname("ident","tcp"); |
if (foo) |
if (foo) |
printf("found service %s on port %d\n",foo->s_name,foo->s_port); |
printf("found service %s on port %d\n",foo->s_name,foo->s_port); |
|
#endif |
#if 0 |
#if 0 |
char buf[128]; |
char buf[128]; |
strcpy(buf,"/tmp/foo.XXXXXXX"); |
strcpy(buf,"/tmp/foo.XXXXXXX"); |