Skip to content
Snippets Groups Projects
Commit 00b9d6e7 authored by Phil Eckert's avatar Phil Eckert
Browse files

Bring coding example up to date.

parent 4841c6ce
No related branches found
No related tags found
No related merge requests found
...@@ -123,6 +123,8 @@ SLURM controller. ...@@ -123,6 +123,8 @@ SLURM controller.
.LP .LP
#include <stdio.h> #include <stdio.h>
.br .br
#include <stdlib.h>
.br
#include <slurm/slurm.h> #include <slurm/slurm.h>
.br .br
#include <slurm/slurm_errno.h> #include <slurm/slurm_errno.h>
...@@ -153,15 +155,15 @@ int main (int argc, char *argv[]) ...@@ -153,15 +155,15 @@ int main (int argc, char *argv[])
.br .br
slurm_print_job_step_info_msg (stdout, slurm_print_job_step_info_msg (stdout,
.br .br
step_info_ptr); step_info_ptr, 0);
.LP .LP
/* A harder way.. */ /* A harder way.. */
.br .br
for (i = 0; i < step_info_ptr\->record_count; i++) { for (i = 0; i < step_info_ptr\->job_step_count; i++) {
.br .br
step_ptr = &step_info_ptr\->job_steps[i]; step_ptr = &step_info_ptr\->job_steps[i];
.br .br
slurm_print_job_step_info(stdout, step_ptr); slurm_print_job_step_info(stdout, step_ptr, 0);
.br .br
} }
.LP .LP
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment