HP3000-L Archives

June 1995, Week 1

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Geoff Harper <[log in to unmask]>
Reply To:
Geoff Harper <[log in to unmask]>
Date:
Tue, 6 Jun 1995 13:16:13 -0400
Content-Type:
text/plain
Parts/Attachments:
text/plain (38 lines)
     Curious if any one else has run into this problem, or am I missing
something?  Neither of the two calls to "ltoa" below work.  I know it's
not an ANSI function, but the program compiles, links, and runs fine - ltoa
just doesn't do anything.  Compiler version is A.05.05.
 
#include <stdio.h>
#include <stdlib.h>
void main(void)
{
  char buf[]="If you can read this, ltoa failed";
  int radix;
  long value;
 
  ltoa(0x10000,buf,10);
  printf("The result is: %s\n",buf);
 
  value = 95;
  radix = 10;
  ltoa(value,buf,radix);
  printf("The result is: %s\n",buf);
}
 
                                                   TIA,
                                                  -Geoff
 
 
 
______________________/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_
  Geoff Harper         Sales (US):   800 Net-Mail    Fax:+1 916 622-0738
   ______              -or-       +1 916 622-0630 E-Mail: [log in to unmask]
  /__ |  \__________   Sales (Europe):+44(0480)414131 Fax:+44(0480)414134
 /  / | / ________     Sales (Pacific Rim):+61 3 489 8216 (same for fax)
|  /_ |<  ______       Tech Support:+1 703 569-9189  Fax:+1 703 451-3720
 \ __)| \ ___          E-mail: [log in to unmask]   Personal(me): [log in to unmask]
  \______/ Associates  6901 Old Keene Mill Rd Suite 205 Springfield VA 22150
______________________/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_
Gopher: gopher.3k.com   Anon-FTP: ftp.3k.com  WWW: http://www.3k.com/

ATOM RSS1 RSS2