def reloc_var(var_name, reloc_delta, pointer, var_type):
template = '<STR_LIT>'<EOL>return template.format(<EOL>var_type, var_name, reloc_delta,<EOL>'<STR_LIT:*>' if pointer else '<STR_LIT>'<EOL>)<EOL>
Build C source code to relocate a variable.