[SOLVED] Print variable or function on arduino lcd

My question is how to print the name of a variable or function on the lcd using I2C (only the name. Not the data that the function or variable contains)

Ejemplo:

    c21111();
    delay(500);

  if (digitalRead(10) == 0) {
    imprimvariable();
  } else {
    delay(9000);
    c21112();
    delay(500);
  }

What I would like to do in the example code is that when I finish executing c21111(); and the delay, enter the conditional and if the conditional is met, print me the name of the function which would be "c21111();" and if it is not fulfilled, go to the next function which is c21112(); which would also have a conditional that if it were fulfilled it would print the name of that function which would be "c21112();" and so on

I hope I have explained well what I want and I would appreciate the help{

you can't print the name of the function, nor the name of the variable, because this "name" is just written in the .ino file. After compiling the sketch, the name is gone.

what you could do is to add a

lcd.print("c21112");

at the end of your function c21112()

FUNCTION will get you the function name

More info here

LINE is also useful so you can tell exactly where you are in the code.

--- bill

I recommend re-naming the function from "c21112" to "TheAnswerIs42" which represents a much much more meaningful and selfexplaining name

I already managed to solve my question applying something similar to what the friend suggested.

noiasca:
what you could do is to add a

lcd.print("c21112");

at the end of your function c21112()

[color=#202124]Thank you all.[/color]