Annotation of researchv10dc/630/man/src/p_man/man3/itox.3l, revision 1.1

1.1     ! root        1: .ds ZZ DEVELOPMENT PACKAGE
        !             2: .TH ITOX 3L "630 MTG"
        !             3: .XE "itox()"
        !             4: .XE "itoa()"
        !             5: .XE "itoo()"
        !             6: .SH NAME
        !             7: itox, itoa, itoo \- convert integer to string representation
        !             8: .SH SYNOPSIS
        !             9: .B char \(**itox (n, s)
        !            10: .sp
        !            11: .B char \(**itoa (n, s)
        !            12: .sp
        !            13: .B char \(**itoo (n, s)
        !            14: .sp
        !            15: .B long n;
        !            16: .br
        !            17: .B char  \(**s;
        !            18: .SH DESCRIPTION
        !            19: The
        !            20: .I itox
        !            21: function
        !            22: returns the hexadecimal string representation of the long integer
        !            23: .I n
        !            24: prefixed with "0x".
        !            25: .PP
        !            26: The
        !            27: .I itoa
        !            28: function
        !            29: returns the decimal string representaion of the integer
        !            30: .IR n .
        !            31: .PP
        !            32: The
        !            33: .I itoo
        !            34: function
        !            35: returns the octal string representation of the integer
        !            36: .I n
        !            37: prepended with "0".
        !            38: .PP
        !            39: The argument
        !            40: .I s
        !            41: must point to a buffer large enough to hold the string.
        !            42: The return value is
        !            43: .IR s .
        !            44: .SH EXAMPLE
        !            45: The following example produces a hexadecimal string without the "0x" prefix.
        !            46: .sp
        !            47: .RS 3
        !            48: .ft CM
        !            49: .nf
        !            50: #include <dmd.h>
        !            51: char *itox();
        !            52: 
        !            53: char *
        !            54: myitox(buf)
        !            55: char *buf;
        !            56: {
        !            57:         return(itox((long)192, buf) + 2);
        !            58: }
        !            59: .fi
        !            60: .ft R
        !            61: .RE
        !            62: .PP
        !            63: Note:
        !            64: the return value is
        !            65: .I buf
        !            66: + 2,
        !            67: which is the hexadecimal string ``C0''.

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.