numtos man page on SmartOS

Man page or keyword search:  
man Server   16655 pages
apropos Keyword Search (all sections)
Output format
SmartOS logo
[printable version]

STOI(9F)							      STOI(9F)

NAME
       stoi, numtos - convert between an integer and a decimal string

SYNOPSIS
       #include <sys/ddi.h>

       int stoi(char **str);

       void numtos(unsigned long num, char *s);

INTERFACE LEVEL
       Solaris DDI specific (Solaris DDI).

PARAMETERS
       str
	      Pointer to a character string to be converted.

       num
	      Decimal number to be converted to a character string.

       s
	      Character buffer to hold converted decimal number.

DESCRIPTION
   stoi()
       The  stoi()  function  returns the integer value of a string of decimal
       numeric characters beginning at **str. No overflow  checking  is	 done.
       *str is updated to point at the last character examined.

   numtos()
       The  numtos() function converts a long into a null-terminated character
       string. No bounds checking is done. The caller  must  ensure  there  is
       enough space to hold the result.

RETURN VALUES
       The stoi() function returns the integer value of the string str.

CONTEXT
       The  stoi() function can be called from user, interrupt, or kernel con‐
       text.

SEE ALSO
       Writing Device Drivers

NOTES
       The stoi() function handles only positive integers; it does not	handle
       leading minus signs.

				 Jan 16, 2006			      STOI(9F)
[top]

List of man pages available for SmartOS

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net