Creating a memcmp_E function [SOLVED]

would something like this help you get started?

template<typename T>
void whatsMySize(T s)
{
  Serial.print(F("Size of param = "));
  Serial.println(sizeof(s));
}

template void whatsMySize<>(uint8_t); // instantiates whatsMySize<uint8_t>(uint8_t), template argument deduced
template void whatsMySize(int); 
template void whatsMySize<double>(double); // instantiates whatsMySize<double>(double)


void setup() {
  uint8_t b=1;
  int i=1;
  double d=1;

  Serial.begin(115200);
  whatsMySize(b);
  whatsMySize(i);
  whatsMySize(d);
}

void loop() {}

the console output running this on a UNO is

[color=purple]Size of param = 1
Size of param = 2
Size of param = 4[/color]