RISC OS Open
A fast and easily customised operating system for ARM devices
ROOL
Home | News | Software | Bugs | Bounties | Forum | Documents | Photos | Contact us
Account

Page "IrqV/versions/new/1" does not exist. Please create it now, or hit the "back" button in your browser.

OS_ConvertCardinal3

Programmer's Reference Manuals
» Part 15 – SWI Calls
» OS
» OS_ConvertCardinal3

OS_ConvertCardinal3

(SWI &D7)
Entry
R0 Value to be converted
R1 Pointer to buffer for resulting string
R2 Size of buffer
Exit
R0 Pointer to buffer (R1 on entry)
R1 Pointer to terminator
R2 Free bytes in buffer

Use

The purpose of this call is to convert a value into an unsigned string of decimal characters.

Notes

The output can be a value from 0 to 16,777,215. The commas are not output.

The string is not padded with zeros, so is of variable length.

Every three digits from the right, a space is inserted. e.g. 16 777 215.

See also

  • OS_ConvertCardinal1
  • OS_ConvertCardinal2
  • OS_ConvertCardinal4
Revised on November 26, 2010 12:33:02 by Trevor Johnson (329)? (127.0.0.1)
Edit | Back in time (1 revision) | See changes | History | Views: Print | Source | Linked from: OS SWI Calls, OS_ConvertCardinal1, OS_ConvertCardinal2, OS_ConvertCardinal4

Search the Wiki

Commercial use

For commercial enquiries, please contact the owners of RISC OS, Castle Technology Ltd.

ROOL Store

The official C/C++ Development kit and more here.

Donate! Why?

Help ROOL make things happen – please consider donating!

Navigation

  • Home Page
  • All Pages
  • Recently Revised
  • Authors
  • Feeds
Site design © RISC OS Open Limited 2011 except where indicated
The RISC OS Open Instiki theme is based on Insitki's default layout

Valid XHTML 1.0  |  Valid CSS

Instiki 0.19.1(MML+)
This site runs on Rails

Hosted by Arachsys