Data Conversion (Windows Embedded CE 6.0)
1/5/2010
Data conversion routines convert data from one form to another. Generally these routines execute faster than conversions you might write. Each routine that begins with a to prefix is implemented as a function and as a macro.
For detailed reference information about the CRT functions, see Alphabetical Function Reference (CRT).
Routine | Use |
---|---|
abs |
Finds absolute value of integer |
atof |
Converts string to float |
atoi |
Converts string to int |
atol, wtol |
Converts string to long |
_ecvt |
Converts double to string of specified length. This function is deprecated because a more secure version is available. |
_ecvt_s |
Converts a double number to a string. Security-enhanced version of deprecated function _ecvt. Validates parameters and sets errno. Template overload available. |
_fcvt |
Converts double to string with specified number of digits following decimal point. This function is deprecated because a more secure version is available. |
_fcvt_s |
Converts a floating-point number to a string. Security-enhanced version of deprecated function _fcvt. Validates parameters and sets errno. Template overload available. |
_gcvt |
Converts double number to string; store string in buffer. This function is deprecated because a more secure version is available. |
_gcvt_s |
Converts a floating-point value to a string. Security-enhanced version of deprecated function _gcvt. Validates parameters and sets errno. Template overload available. |
_itoa, _itow |
Converts int to string. These functions have been deprecated because security enhanced versions, _itoa_s and _itow_s, now exist. |
_itoa_s, _itow_s |
Converts an integer to a string. Security-enhanced versions of deprecated functions _itoa and _itow. Validates parameters and sets errno. Template overload available. Windows Embedded CE 6.0 does not support forms of this function that convert int64 values, _i64toa_s, _ui64toa_s, _i64tow_s, and _ui64tow_s. |
labsf |
Finds absolute value of long integer |
_ltoa, _ltow |
Converts long to string. These functions have been deprecated because security enhanced versions, _ltoa_s and _ltow_s, now exist. |
_ltoa_s, _ltow_s |
Converts a long integer to a string. Security-enhanced versions of deprecated functions _ltoa and _ltow. Validates parameters, won't write past end of buffer. |
mbstowcs |
Converts a sequence of multibyte characters to a corresponding sequence of wide characters. This function is deprecated because a more secure version is available. |
mbstowcs_s |
Converts a sequence of multibyte characters to a corresponding sequence of wide characters. Security-enhanced version of deprecated function mbstowcs. Takes a buffer size and won't write past end of buffer. Template overload available. Windows Embedded CE 6.0 does not support the form of this function that uses the Locale parameter, _mbstowcs_s_l. |
strtod, wcstod |
Converts string to double |
strtol, wcstol |
Converts string to long integer |
strtoul, wcstoul |
Converts string to unsigned long integer |
towlower |
Tests character and converts to lowercase if currently uppercase |
towupper |
Tests character and converts to uppercase if currently lowercase |
_ultoa, _ultow |
Converts unsigned long to string. These functions have been deprecated because security-enhanced versions, _ultoa_s and _ultow_s, now exist |
_ultoa_s, _ultow_s |
Converts an unsigned long integer to a string. Security-enhanced versions of deprecated functions _ultoa and _ultow. Sets errno, template overload available. |
wcstombs |
Converts wide character to corresponding multi-byte character |
_wtoi |
Converts wide-character string to integer |
See Also
Concepts
Other Resources
C/C++ Libraries for Windows Embedded CE
What's New in the C Run-Time Library