ast_func_read() needs a writable copy of the function name to be passed