SCM proc = gh_str2scm("d-UploadRoutine", strlen("d-UploadRoutine"));
// proc = scm_string_to_symbol("d-UploadRoutine");
// proc = scm_string_to_symbol( gh_str2scm("d-UploadRoutine",
strlen("d-UploadRoutine")));
SCM arg1 = gh_str2scm("hello", strlen("hello"));
SCM arg2 = gh_str2scm("he2lo", strlen("hello"));
SCM arg3 = gh_str2scm("he3lo", strlen("hello"));
SCM arg4 = gh_str2scm("he4lo", strlen("hello"));
scm_call_4(proc, arg1, arg2, arg3, arg4);
The three definitions of proc lead to the following three error messages:
ERROR: In procedure apply:
ERROR: Wrong type argument in position 1: "d-UploadRoutine"