All pastes #182103 Raw Edit

Unnamed

public cpp v1 · immutable
#182103 ·published 2006-09-25 19:05 UTC
rendered paste body
/************************************************************************************/// FunctionName : StringToInt//// Author: Tony Nicol//// Description: This function is used to convert a string of chars … etc. Provide // details of the workings of the function.//// Parameters:// [in]//      const char : *InValStr : String to be converted.  This should not be modified.//      eBase Base : Number base of string.  //// [out]//      int *ErrorVal : Passed back to user after conversion.  0 if no problems or//                      one of the following to indicate type of error to the user://                      NULL_STRING    Null string passed in arg 1//                      OVERFLOW       Overflow occured during conversion//                      INVALID_DIGIT  At least 1 digit in the string is invalid//// Returns//      int : integer after conversion from string//// Calls//    IsBin()  : Pass addr of a char and convert it to an int. Ret True if valid//    IsDec()  : Pass addr of a char and convert it to an int. Ret True if a valid//    IsHex()  : Pass addr of a char and convert it to an int. Ret True if a valid//// Globals//      None//// Mod State://// 29-09-03 [A.N] Modified this header for 2003/2004 notes./************************************************************************************/