From e68851edaedd3750328512ef3a450801fcc05e9d Mon Sep 17 00:00:00 2001 From: Axel Kohlmeyer Date: Mon, 23 Sep 2024 14:54:54 -0400 Subject: [PATCH] fix cut-n-modify issue --- src/library.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/library.cpp b/src/library.cpp index 75d6fecc18..0065f10454 100644 --- a/src/library.cpp +++ b/src/library.cpp @@ -509,10 +509,9 @@ void lammps_error(void *handle, int error_type, const char *error_text) This function tells LAMMPS to expand the string in *cmd* like it would process an input line fed to :cpp:func:`lammps_command` **without** executing it. -The entire string is considered as command and need not have a -(final) newline character. Newline characters in the body of the -string, however, will be treated as part of the command and will **not** -start a second command. +The *entire* string is considered as input and need not have a (final) newline +character. Newline characters in the body of the string, however, will be +treated as part of the command and will **not** start a second command. The function returns the expanded string in a new string buffer that must be freed with :cpp:func:`lammps_free` after use to avoid a memory leak.