title: Verifying variable arguments are of expected type
body: <p>I'm currently writing a function which will take a variable number of arguments. I pass the number of arguments into the function and then will iterate through the arguments list.</p>
  
  <p>Each of the passed arguments should be an integer. I will be adding this integer to a vector of integers which will be used later.</p>
  
  <p>I would like to make sure that some joker doesn't attempt to pass this function something other then an integer in the future. I recognize that I can check the current argument from va_arg to ensure it is not NULL and I can use something like isanum(va_arg()) to determine if it is a valid integer. I suppose I could even check the sizeof(va_arg) and compare it against the sizeof(int) and ensure they are equal.</p>
  
  <p>Are there any other checks which I can run to verify I have been passed a valid integer?</p>
  
  <p>Thanks in advance for assistance</p>