| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | insult.c |
22 Oct 96 11:43, Rowan_Crowe wrote to Frank Adam:
> ftime(&t); /* get millisecs */
Just a quick note that ftime() isn't ISO C. Most compilers support it
though. Oh, and...
> printf("\n Thou %s %s %s. \n",
> first[random(sizeof first /sizeof(char*))],
random() isn't ISO C either, and is in fact prototyped differently by
Borland and DJGPP. The following macro is compabile with Borland's though,
and rand() and RAND_MAX are ISO C.
#define random(num) (int) (((long) rand() * (num)) / RAND_MAX)
(and I bet you thought the code you posted was okay! :-)
Regards
Andrew
-- randy{at}zws.com
--- Msged/2 4.00
* Origin: Blizzard of Ozz, Melbourne, Australia (3:635/728.4{at}fidonet)SEEN-BY: 633/267 270 @PATH: 633/267 |
|
| SOURCE: echomail via fidonet.ozzmosis.com | |
Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.