One str(…) macro to handle them all.

int table = 13;
int id = 37;
str test1 = str(“SELECT * FROM “, table, ” where person_id “, id);
str test2 = str(test1);         //copies test1 to test2
str test3 = str(test2, test1); // returns concat of test2 and test1

test2 = test1; // acceptable, but wrong since test2 now points to test1 not copies it.

str(test1); // returns const char to use in printf like functions Ex: puts(str(*test1)); // prints test1;

Programming Tools

This is where all the vim VS emacs posts should go.

Created on Oct 19, 2020
By @gurlic