prg_log_delete()

Abstract

Deletes the files that compose a log.

Syntax

prg_log_delete (log_name, log_directory)
Argument Type Description
log_name const char * Name of the log (no path or extension).
log_directory const char * Full path of the directory containing the log, or an empty string (optional; see Details).

Return Type

PrgT_Compcode

PrgC_Compcode_Success if the log is deleted successfully; PrgC_Compcode_Failure otherwise.

prg_log.h

Details

A log consists of a directory (<log name>.olf.dir) containing a log_info file and all of the log’s data (*.ot) files. This function deletes the log directory and all files inside it.

If the log is a tfile, only the log_name argument is needed to locate and delete the log in the default tfile directory. If the log is not a tfile, you can use the log_directory argument to specify the directory containing the log (that is, the directory containing the <log name>.olf.dir directory).

本站文档由 北京智网畅联科技有限公司 整理、翻译并提供 · Documentation compiled and provided by Beijing ZNetLink Technology Co., Ltd.

交流群 · QQ Group:OPNET/智网妙算网络仿真交流群(群号 486383494)

原文档 © 2017 Riverbed Technology · 本站为公益翻译,由 AI 辅助完成,请仔细甄别

Original documentation © 2017 Riverbed Technology. Community translation, AI-assisted. Contact: jiazequn@znetlink.com