tfStrToUl

Jump to: navigation, search

Table of Contents >> Programmer's Reference


#include <trsocket.h>


ttUser32Bit tfStrToUl (
const char TM_FAR * nptr,
char TM_FAR * TM_FAR * endptr,
int base
);


Function Description

This function converts a string to an unsigned integer.

Example: If a string containing "1234" was passed to tfStrToUl() it would return the long integer 1,234.


Parameters

  • nptr
    Pointer to the string being converted.
  • endptr
    Pointer to a pointer in which the function will return the address of the first non-convertible character.
  • base
    The base of the number system being used. For example: 2 for binary, 10 for decimal, etc.


Returns

  • ttUserS32Bit
    A unsigned ttUser32Bit containing the number represented by the string.


Table of Contents >> Programmer's Reference