I want to know whether using P macro (" defined above setup code") like below
char p_buffer; #define P(str) (strcpy_P(p_buffer, PSTR(str)), p_buffer) #define pgmstr(x) (__FlashStringHelper*)(x) //used for pointing the char arrays saved in flash memory very important
can be used in string functions like strcpy,strcmp
char buffer; strcpy(buffer,P("hi all")); strcat(buffer,P("Please help"));
I tried F macro inside string function but compiler gives error and P macro compiler complies the code properly and works. I just want to know wheter P macro can be used like above . how does F macro and P macro differs.