µVision User's Guide

legacy

getint

Summary
int getint(
  prompt);    /* prompt string */
Description

The getint debugger function prompts you, with the prompt string, to enter a number.

Return Value

The getint debugger function returns either the int value of the entered number or a valule of 0 if a valid number is not entered.

See Also

getdbl, getlong

Example
getint ("Enter Your Age");