Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. wwworlds

    validate input data type

    i have modified my code a little bit, still doesn't validate correct. details as follows int success; int sum; int SumOnlyWholeNums(float *ptr1, float *ptr2, int *ptr_sum); int main(void) { float FL1 = 10.0f, FL2 = 5.0f; int *ptr_sum; float *ptr1; float *ptr2; ptr1 = &FL1; ptr2 = &FL2...
  2. wwworlds

    validate input data type

    i'm new to C. does anyone knows if the following syntax validate input data type ? i'm trying to validate if the input - float/integer (a pointer that send to a function) is a float or an integer....... if input is an integer....return the sum of two input else....doesn't return if (int...

Part and Inventory Search

Back
Top