int kfile_seddata(
int id1,
int id2,
kvalist)
none
For example, the following is a correct termination:
kfile_seddata(id1, id2, "t1", "t2", FALSE, NULL);
And this is an incorrect termination:
kfile_seddata(id1, id2, "t1", NULL);
And this is an incorrect termination:
kfile_seddata(id1, id2, "t1", NULL, FALSE);
The reason the NULL must be on the search pattern, is so that NULL can be sent in as the replacement string. The replacement mechanism is kstring_replace, and its documentation explains restrictions on search strings and replace strings.
The regex parameter is used to indicate whether the search and replacement parameters are specified in regular expression form, or are just simply string replacement patterns. For more information about regular expressions please see the khoros string parsing section of the Khoros Programmers Manual.
kfile_seddata does not support the "mode" operation as used by ksedfile(). The mode operation is used to how the data should be updated, but it relies on the ability to read as well as write to the destination id (id2).
none
none
$BOOTSTRAP/objects/library/kutils/src/kfile.c