if (!control_group.groups.array[i].used) continue;
- path.used = control_group.path.used + control_group.groups.array[i].used + F_control_group_path_system_suffix_s_length;
+ path.used = control_group.path.used + control_group.groups.array[i].used + f_control_group_path_system_suffix_s.used;
f_char_t path_string[path.used + 1];
path.string = path_string;
}
memcpy(path.string + control_group.path.used, control_group.groups.array[i].string, sizeof(f_char_t) * control_group.groups.array[i].used);
- memcpy(path.string + control_group.path.used + F_control_group_path_system_default_s_length, F_control_group_path_system_suffix_s, sizeof(f_char_t) * F_control_group_path_system_suffix_s_length);
+ memcpy(path.string + control_group.path.used + control_group.groups.array[i].used, f_control_group_path_system_suffix_s.string, sizeof(f_char_t) * f_control_group_path_system_suffix_s.used);
path.string[path.used] = 0;
fprintf(file.stream, "%d", id);
f_file_stream_flush(file);
+
status = f_file_stream_close(&file);
if (F_status_is_error(status)) break;
} // for
if (control_group.path.used) {
status = f_directory_exists(control_group.path);
if (F_status_is_error(status)) return status;
-
- if (status == F_false) {
- return F_status_set_error(F_directory_not);
- }
+ if (status == F_false) return F_status_set_error(F_directory_not);
}
f_string_static_t path = f_string_static_t_initialize;