MCPcopy Create free account
hub / github.com/acl-dev/acl / acl_vstream_set_path

Function acl_vstream_set_path

lib_acl/src/stdlib/acl_vstream.c:3362–3377  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3360}
3361
3362void acl_vstream_set_path(ACL_VSTREAM *fp, const char *path)
3363{
3364 if (fp == NULL || path == NULL) {
3365 acl_msg_error("%s(%d), %s: fp %s, path %s", __FILE__, __LINE__,
3366 __FUNCTION__, fp ? "not null" : "null",
3367 path ? "not null" : "null");
3368 return;
3369 }
3370
3371 if (fp->path == NULL) {
3372 fp->path = acl_mystrdup(path);
3373 } else {
3374 acl_myfree(fp->path);
3375 fp->path = acl_mystrdup(path);
3376 }
3377}
3378
3379void acl_vstream_call_close_handles(ACL_VSTREAM *fp)
3380{

Callers 3

acl_vstream_fopenFunction · 0.85
open_file_logFunction · 0.85
openMethod · 0.85

Calls 1

acl_msg_errorFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…