drmaa2_jarray_get_id
- drmaa2_jarray_get_id(3), Returns the id of the job array.
#include "drmaa2.h"
drmaa2_string drmaa2_jarray_get_id(const drmaa2_jarray jarray)
Returns a newly allocated drmaa2_string
copy of the id from the array job.
Returns a newly allocated drmaa2_string
(char *) or NULL in case of an error. The drmaa2_string
must be freed from the calling function.
drmaa2_string id = drmaa2_jarray_get_id(ja);
if (id != NULL) {
/* ... do something with the id ... */
/* finally free the id again */
drmaa2_string_free(&id);
}
drmaa2_jarray_free(3), drmaa2_jarray_get_job_template(3), drmaa2_jarray_get_jobs(3), drmaa2_jarray_get_id(3), drmaa2_jsession_get_session_names(3), drmaa2_jsession_get_session_name(3), drmaa2_jsession_get_contact(3), drmaa2_jsession_get_job_array(3), drmaa2_jsession_run_job(3), drmaa2_jsession_run_bulk_jobs(3), drmaa2_jsession_wait_any_started(3), drmaa2_jsession_wait_any_terminated(3), drmaa2_open_jsession(3)
Copyright Univa Corporation 2013