To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.robotics.rcx.legosOpen lugnet.robotics.rcx.legos in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / RCX / legOS / 1147
1146  |  1148
Subject: 
Convert Integer to String
Newsgroups: 
lugnet.robotics.rcx.legos
Date: 
Mon, 12 Jun 2000 06:36:38 GMT
Viewed: 
1265 times
  
I am having an anoying problem. I want to format a string made up of other
strings and integers. Normally I would do something like this
sprintf(txt,"Num=%d String=%s",number,text)

At the very least does any one know how to do covert an integer to a string in
LegOS?

Thankyou kindly.
Michael.



Message has 1 Reply:
  Re: Convert Integer to String
 
K&R has a very simple itoa implementation that you can copy if LegOS's libc doesn't already have itoa. alex "Michael Marklew" <mike@idl.net.au> wrote in message news:Fw13p2.5yq@lugnet.com... (...) other (...) string in (...) (24 years ago, 12-Jun-00, to lugnet.robotics.rcx.legos)

2 Messages in This Thread:

Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR