From: cis.ohio-state.edu!zaphod.mps.ohio-state.edu!uwm.edu!src.honeywell.com!sa ifr00.cfsat.honeywell.com!dunbar@ucbvax.Berkeley.EDU (Mark Dunbar)
Subject: Re: Wanted: string conversion in Ada
Date: 23 Mar 92 19:27:55 GMT [thread overview]
Message-ID: <1992Mar23.192755.20894@saifr00.cfsat.honeywell.com> (raw)
In article <1992Mar23.175436.23472@src.honeywell.com> englehar@src.honeywell.co
m (Matt Englehart) writes:
>Does anyone have a string conversion package that I could use? I want
>something like C's sprintf. (to do atoi, atof ...)
>
If you have access to Text_IO in your system, it includes procedures to
to convert strings to integer, integer to string, string to float, etc. If
you instantiate integer_io (contained in Text_IO), then
Your_Integer_IO.Get( -- converts from string to integer
Your_Integer_IO.Put( -- converts from integer to string
ditto for float_IO and fixed_IO. See the specification of Text_IO in
you LRM for details.
Mark Dunbar
next reply other threads:[~1992-03-23 19:27 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
1992-03-23 19:27 cis.ohio-state.edu!zaphod.mps.ohio-state.edu!uwm.edu!src.honeywell.com!sa [this message]
-- strict thread matches above, loose matches on Subject: below --
1992-03-25 6:00 Wanted: string conversion in Ada news.u.washington.edu!milton.u.washington.edu!mfeldman
1992-03-23 17:54 dog.ee.lbl.gov!network.ucsd.edu!usc!wupost!uwm.edu!src.honeywell.com!engl
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox