Argox PA-20 Programming Guide Manuel d'utilisateur Page 108

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 130
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 107
PT-20 Programming Guide
106
Data Conversion
__itoa
Purpose
Use __itoa to convert an integer value to a null-terminated character string.
Syntax
char * __itoa (int value, char *string, int radix);
Example call
__itoa(32, buffer, 16); /* buffer will contain “20” */
Includes
#include “SDK.h”
Description
The __itoa function converts the int argument value into a null-terminated
character string using the argument radix as the base of the number
system. The resulting string with a length of up to 17 bytes is saved in the
buffer whose address is given in the argument string. You must allocate
enough room in the buffer to hold all digits of the converted string plus the
terminating null character (\0). For radixes other than 10, the sign bit is not
interpreted; instead, the bit pattern of value is simply expressed in the
requested radix. The argument radix specifies the base (between 2 and 36)
of the number system in which the string representation of value is
expressed. For example, using either 2, 8, 10, or 16 as radix, you can
convert value into its binary, octal, decimal, or hexadecimal representation,
respectively. When radix is 10 and the value is negative, the converted
string will start with a minus sign.
Returns
The __itoa function returns the pointer to the string of degits (i.e., it returns
the argument string).
__ltoa
Purpose
Use __ltoa to convert a long integer value to a null-terminated character
string.
Syntax
char * __ltoa (long value, char *string, int radix);
Example call
__ltoa(0x10000, string, 10); /* string = “65536” */
Includes
#include “SDK.h”
Description
The __ltoa function converts the long argument value into acharacter string
using the argument radix as the base of the number system. A long integer
has 32 bits when expressed in radix 2, so the string can occupy a
maximum of 33 bytes with the terminating null character. The resulting
string is returned in the buffer whose address is given in the argument
string. The argument radix specifies the base (between 2 and 36) of the
number system in which the string representation of value is expressed.
For example, using either 2, 8, 10,or 16 as radix, you can convert value into
its binary, octal, decimal, or hexadecimal representation, respectively.
Vue de la page 107
1 2 ... 103 104 105 106 107 108 109 110 111 112 113 ... 129 130

Commentaires sur ces manuels

Pas de commentaire

LG 47LA6900 manuals

Owner’s manuals and user’s guides for Unknown LG 47LA6900.
We providing 1 pdf manuals LG 47LA6900 for download free by document types: Energy Guide


Lg 47LA6900 Energy Guide (1 pages)


Brand: Lg | Category: No info | Size: 0.35 MB |

 

Table of contents





More products and manuals for Unknown LG

Models Document Type
55LB6100 Energy Guide   LG 55LB6100 Energy Guide, 1 pages
WD-14126RD User Manual   LG WD-14126RD User's Manual, 30 pages
IPS231P User Manual   LG ips231p User's Manual, 31 pages
LW2412ER Energy Guide   LG LW2412ER Energy Guide, 1 pages
LW1012ER Owner's Manual    LG LW1012ER Owner's Manual, 52 pages
LTC24380SB Energy Guide   LG LTC24380SB Energy Guide, 2 pages
42LM6200 Energy Guide   LG 42LM6200 Energy Guide, 1 pages
LFX25973ST Energy Guide   LG LFX25973ST Energy Guide, 4 pages
VS890 Brochure   LG VS890 Brochure (Spanish), 8 pages
W182CM TSNO User Manual   LG W182CM TSNO User's Manual, 20 pages
32LV2400 Energy Guide   LG 32LV2400 Energy Guide, 1 pages
3828ER3020V User Manual    LG 3828ER3020V User's Manual, 15 pages
55LM6200 Energy Guide   LG 55LM6200 Energy Guide, 1 pages
Dehumidifier LHD45EL User Manual   LG Dehumidifier LHD45EL User's Manual, 25 pages
V700 Quick Start Guide    LG V700 Quick Start Guide, 90 pages
D950 Specifications Sheet   LG D950 Specification Sheet (Spanish), 1 pages
LW6012ER Specifications Sheet   LG LW6012ER Specification Sheet, 2 pages
MMBB0000000(1.0) User Manual   LG MMBB0000000(1.0) User's Manual, 2 pages
47LS5700 Energy Guide   LG 47LS5700 Energy Guide, 1 pages
WM2250CW Energy Guide   LG WM2250CW Energy Guide, 1 pages