prg_string_const()

Abstract

Returns a permanently allocated string with the same content as the source string.

Syntax

prg_string_const (allocated_string)
Argument Type Description
allocated_string const char * String to be duplicated as a constant.

Return Type

const char *

The requested constant string

prg_string_funcs.h

Details

This function returns a constant string containing the text of allocated_string. If such a string already exists in the constant string table, a pointer to the existing memory is returned. Otherwise, a new constant string is allocated and put in the table. The returned string must never be modified or freed.

本站文档由 北京智网畅联科技有限公司 整理、翻译并提供 · 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