TIP: Click on subject to list as thread! ANSI
echo: c_echo
to: Neil Heller
from: Jasen Betts
date: 2003-03-23 09:17:42
subject: portability

Hi Neil.

22-Mar-03 11:27:04, Neil Heller wrote to Jonathan de Boyne Pollar


 Jd>> Bear in mind that not all uses of itoa() are for producing
 Jd>> strings that are  intended for display to human beings.  Some
 Jd>> people use base  36 for generating filenames, for example.

 NH> This interests me.  Would you please post a snippet of code for
 NH> generating filenames using base 36.

  char filename[]="foo.xxxxx";
  itoa( x ,filename+4,36)

 dunno what it's good for.

 IMO tmpnam()/tmpfile() are often more convenient.

 -=> Bye <=-

---
* Origin: If at first you don't succeed, the hell with it. (3:640/1042)
SEEN-BY: 633/267 270
@PATH: 640/1042 531 954 774/605 123/500 106/2000 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™.